{"action":"created","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/915","labels_url":"https://api.github.com/repos/obspy/obspy/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/915/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/915/events","html_url":"https://github.com/obspy/obspy/pull/915","id":49464119,"number":915,"title":"Stop using 'jet' colour map by default","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/obspy/obspy/labels/.imaging","name":".imaging","color":"0b02e1"},{"url":"https://api.github.com/repos/obspy/obspy/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/obspy/obspy/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/obspy/obspy/milestones/8","html_url":"https://github.com/obspy/obspy/milestones/0.11.0","labels_url":"https://api.github.com/repos/obspy/obspy/milestones/8/labels","id":725009,"number":8,"title":"0.11.0","description":"","creator":{"login":"barsch","id":602450,"avatar_url":"https://avatars.githubusercontent.com/u/602450?v=3","gravatar_id":"","url":"https://api.github.com/users/barsch","html_url":"https://github.com/barsch","followers_url":"https://api.github.com/users/barsch/followers","following_url":"https://api.github.com/users/barsch/following{/other_user}","gists_url":"https://api.github.com/users/barsch/gists{/gist_id}","starred_url":"https://api.github.com/users/barsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barsch/subscriptions","organizations_url":"https://api.github.com/users/barsch/orgs","repos_url":"https://api.github.com/users/barsch/repos","events_url":"https://api.github.com/users/barsch/events{/privacy}","received_events_url":"https://api.github.com/users/barsch/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":10,"state":"open","created_at":"2014-07-18T08:42:03Z","updated_at":"2015-04-27T21:21:17Z","due_on":null,"closed_at":null},"comments":30,"created_at":"2014-11-19T22:43:30Z","updated_at":"2015-04-27T22:17:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/obspy/obspy/pulls/915","html_url":"https://github.com/obspy/obspy/pull/915","diff_url":"https://github.com/obspy/obspy/pull/915.diff","patch_url":"https://github.com/obspy/obspy/pull/915.patch"},"body":"I've been meaning to post this before, and [this post](http://www.climate-lab-book.ac.uk/2014/end-of-the-rainbow/) just reminded me of it. Matplotlib has been [taking its time](https://github.com/matplotlib/matplotlib/issues/875), but they have to come up with a default colour map for a wide variety of cases. Since we have so few plots, I don't see why we can't choose a sane default for them ourselves. (And waiting for matplotlib will leave out all the users with older versions anyway.)\r\n\r\nSo far, I have found the following plots that could use fixing:\r\n - [ ] Tutorial:\r\n  - [ ] [9 Beamforming Analysis](http://docs.obspy.org/tutorial/code_snippets/beamforming_fk_analysis.html)\r\n   - The first scatter plot is default; second polar plot is hot_r.\r\n  - [x] [11 Plotting Spectrograms](http://docs.obspy.org/tutorial/code_snippets/plotting_spectrograms.html)\r\n   - Uses default.\r\n  - [x] [23 Hierarchical Clustering](http://docs.obspy.org/tutorial/code_snippets/hierarchical_clustering.html)\r\n   - Uses default.\r\n   - I also don't like that the dissimilarity matrix doesn't match the colours on the dendrogram, though I don't know how easy it is to match them.\r\n  - [ ] [24 Visualizing Probabilistic Power Spectral Density](http://docs.obspy.org/tutorial/code_snippets/probabilistic_power_spectral_density.html)\r\n   - This seems to be a made-up colour map, though it seems pretty similar to rainbow.\r\n  - [x] [25 Array Response Function](http://docs.obspy.org/tutorial/code_snippets/array_response_function.html)\r\n   - Very obviously the default, and it doesn't look good.\r\n  - [x] [26 Continuous Wavelet Transform](http://docs.obspy.org/tutorial/code_snippets/continuous_wavelet_transform.html)\r\n   - All plots use the default.\r\n  - [ ] [27 Time Frequency Misfit](http://docs.obspy.org/tutorial/code_snippets/time_frequency_misfit.html#plot-the-time-frequency-representation)\r\n   - Tfr seems to be a different colour map from the rest, hand made, and not even the same as the original citations.\r\n    - TfMisfits could maybe be replaced with RdYlBu_r, since it's divergent.\r\n    - I'm not sure why TfGofs uses a reversed colour map compared to the others.\r\n - [ ] Basemaps:\r\n  - [ ] [Catalog plots](http://docs.obspy.org/master/packages/autogen/obspy.core.event.Catalog.plot.html)\r\n   - The examples use depth-colouring red-yellow-green, which is not good for colour-blindness.\r\n   - Colouring by date will use the default colour map according to docs, though I don't think this is true.\r\n  - [x] [Inventory plots](http://docs.obspy.org/master/packages/autogen/obspy.station.inventory.Inventory.plot.html)\r\n   - Uses jet by default, though it tries to turn it into categories.\r\n   - Changed to use the \"Paired\" colour map from ColorBrewer. This makes more sense since it's really a categorical designation. Additionally, the single colouring uses the colour from Paired with lut=1, instead of blue.\r\n  - [x] [Network plots](http://docs.obspy.org/master/packages/autogen/obspy.station.network.Network.plot.html)\r\n   - Might not be needed for anything.\r\n   - The default colour is changed like the previous one. No colour map involved.\r\n\r\nThis PR is not nearly done, so suggestions are welcome."},"comment":{"url":"https://api.github.com/repos/obspy/obspy/issues/comments/96837137","html_url":"https://github.com/obspy/obspy/pull/915#issuecomment-96837137","issue_url":"https://api.github.com/repos/obspy/obspy/issues/915","id":96837137,"user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T22:17:23Z","updated_at":"2015-04-27T22:17:23Z","body":"> The colorscale here is red for 0-69 km depth, green for 70-299 km. depth and blue for 300+ km depth.\r\n\r\nRight, so I wasn't against Red/Green if it's semi-standard, but should we make it segmented like this, or continuous?\r\n\r\nFor the sequential examples, I will check on a couple other screens tomorrow, but the first two appear to have a kink at the green point, where it seems a bit disjoint. The fourth one also seems to have a little kink right in the middle. So right now, the third seems smoothest. BTW, did you try them out in greyscale?"}}