{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"markdown","source":"Hello, everyone\nI plot training data with healpy\n\n![figure2](http://mdns.esy.es/wp-content/uploads/2018/11/Figure_2.png)\n\nHave a nice statistics !"},{"metadata":{"_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","collapsed":true,"_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","trusted":false},"cell_type":"code","source":"\"\"\"\n plot training data in HealPix\n\"\"\"\n\nimport healpy as hp\nimport pandas as pd\nimport matplotlib.pyplot as plt\n\n\n\"\"\" read data \"\"\"\ndf_gal_lb=pd.read_csv(\"./data/training_set_metadata.csv\")\n\n\"\"\" set grid lines\"\"\"\nhp.graticule()\n\n\"\"\" draw scatter plot in HealPix \"\"\"\nobject=hp.projscatter(df_gal_lb.gal_l, df_gal_lb.gal_b, s=5,\n                      c=df_gal_lb.hostgal_specz, cmap=\"jet\", lonlat=True, coord=\"G\")\n\n\"\"\" draw colorbar \"\"\"\ncbar=plt.colorbar(object, orientation=\"horizontal\")\ncbar.set_label(\"red shift\",size=14)\n\n\"\"\" show image \"\"\"\nplt.show()\n","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat":4,"nbformat_minor":1}