{"action":"created","issue":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/1432","labels_url":"https://api.github.com/repos/sunpy/sunpy/issues/1432/labels{/name}","comments_url":"https://api.github.com/repos/sunpy/sunpy/issues/1432/comments","events_url":"https://api.github.com/repos/sunpy/sunpy/issues/1432/events","html_url":"https://github.com/sunpy/sunpy/pull/1432","id":84346072,"number":1432,"title":"Major fixes to Map Plotting ","user":{"login":"ehsteve","id":739053,"avatar_url":"https://avatars.githubusercontent.com/u/739053?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsteve","html_url":"https://github.com/ehsteve","followers_url":"https://api.github.com/users/ehsteve/followers","following_url":"https://api.github.com/users/ehsteve/following{/other_user}","gists_url":"https://api.github.com/users/ehsteve/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsteve/subscriptions","organizations_url":"https://api.github.com/users/ehsteve/orgs","repos_url":"https://api.github.com/users/ehsteve/repos","events_url":"https://api.github.com/users/ehsteve/events{/privacy}","received_events_url":"https://api.github.com/users/ehsteve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sunpy/sunpy/milestones/15","html_url":"https://github.com/sunpy/sunpy/milestones/0.6","labels_url":"https://api.github.com/repos/sunpy/sunpy/milestones/15/labels","id":1034473,"number":15,"title":"0.6","description":"","creator":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":40,"state":"open","created_at":"2015-03-23T16:50:40Z","updated_at":"2015-06-15T16:55:24Z","due_on":"2015-04-16T23:00:00Z","closed_at":null},"comments":14,"created_at":"2015-06-03T04:03:10Z","updated_at":"2015-06-15T17:32:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sunpy/sunpy/pulls/1432","html_url":"https://github.com/sunpy/sunpy/pull/1432","diff_url":"https://github.com/sunpy/sunpy/pull/1432.diff","patch_url":"https://github.com/sunpy/sunpy/pull/1432.patch"},"body":"This includes a number of bug fixes and standardization for plotting of maps including better normalizations for each map. All data is now shown in each map from the minimum to maximum and the normalization is chosen so that this is so.\r\n\r\nYou can get a preview of my changes in the following [ipython notebook](https://github.com/ehsteve/ipython-notebooks/blob/master/Testing%20Plot%20Fixes%200.6.ipynb)\r\n\r\n## Needs to be done\r\n- [ ] Get consensus on normalization choices\r\n- [ ] Documentation of normalization choices\r\n- [x] Fix tests\r\n- [x] Address code comments\r\n- [x] Changelog entry"},"comment":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/comments/112147915","html_url":"https://github.com/sunpy/sunpy/pull/1432#issuecomment-112147915","issue_url":"https://api.github.com/repos/sunpy/sunpy/issues/1432","id":112147915,"user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T17:32:52Z","updated_at":"2015-06-15T17:32:52Z","body":"Whowa histogram norm.\n\nWe should doc this, even if we don't use it.\n\nOn 15 June 2015 18:29:17 BST, ayshih <notifications@github.com> wrote:\n>Here are examples using [Astropy's\n>ImageNormalize](http://astropy.readthedocs.org/en/latest/api/astropy.visualization.mpl_normalize.ImageNormalize.html)\n>with their available [stretching\n>functions](http://astropy.readthedocs.org/en/latest/visualization/index.html#module-astropy.visualization).\n>\n>```python\n>from sunpy import map\n>from sunpy.data import sample\n>from astropy.visualization.mpl_normalize import ImageNormalize\n>from astropy import visualization\n>import matplotlib.pyplot as plt\n>\n>m = map.Map(sample.AIA_193_IMAGE)\n>```\n>\n>#### The same as the default normalization in this PR (power law of\n>0.5)\n>```python\n>m.plot(norm=ImageNormalize(stretch=visualization.PowerStretch(0.5)))\n>plt.colorbar()\n>plt.show()\n>```\n>![figure_1](https://cloud.githubusercontent.com/assets/991759/8165824/89d92968-1348-11e5-812f-55d67960a911.png)\n>#### Inverse hyperbolic sine\n>```python\n>m.plot(norm=ImageNormalize(stretch=visualization.AsinhStretch()))\n>plt.colorbar()\n>plt.show()\n>```\n>![figure_2](https://cloud.githubusercontent.com/assets/991759/8165831/8f346986-1348-11e5-8ff3-586128f07a4b.png)\n>#### Histogram equalization\n>```python\n>m.plot(norm=ImageNormalize(stretch=visualization.HistEqStretch(m.data)))\n>plt.colorbar()\n>plt.show()\n>```\n>![figure_3](https://cloud.githubusercontent.com/assets/991759/8165835/946b8ee8-1348-11e5-8f97-d829268198aa.png)\n>\n>---\n>Reply to this email directly or view it on GitHub:\n>https://github.com/sunpy/sunpy/pull/1432#issuecomment-112147204\n"}}