-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
DOC: change colormap away from "jet" in examples #1327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The arguments seem to be convincing. How about the other examples:
|
👍 I'm on board with never using |
As a side note, changing the default color map (and forcing a v2.0) is on the near term horizon for mpl. The sticking point is not if it should be done, but what the new default should be. |
That is fantastic news, @tacaswell! These still need fixed as they actually specify |
Yeah, I commented before I looked at the changes 🐑 . |
For the other examples, I'm not sure the best choice http://scikit-image.org/docs/dev/auto_examples/applications/plot_coins_segmentation.html uses Also we could use a different colormap than |
IMO, gray would do the job instead of jet to show the 8000 effect of a sobel filter. |
I like |
I think There's also |
Well I think that's what the qualitative colormaps are meant for? But they're currently implemented as |
Also I'm confused because it seems like |
@endolith no, the two modules aren't merging. Canny was moved from Regarding colormaps, I don't have all that much experience in this space... Is there a qualitative map that can be used for an arbitrary number of segments? |
@endolith, I think we need @tonysyu to weigh in on whether to change to a |
I think it's a good idea to define some qcmap_jet = ListedColormap(plt.cm.jet(np.linspace(0, 1, 5))) |
I guess we need to wait for matplotlib to finalize their decision, but at least we have alternatives now at http://bids.github.io/colormap/ |
I think should include the viridia look up table in |
I would not override the matplotlib defaults, in case the user chose to use something different. But we can make sure that, when io.imshow is called and the matplotlib backend is in place, viridis is used. Perhaps viridis can be exposed even more prominently so that users can use it easily? |
skimage.set_cmap? — On Sat, Jul 11, 2015 at 1:08 PM, Stefan van der Walt
|
I shy away from carrying state. It often leaves an awful mess in notebooks, e.g. |
How about if we register the cmap on import, and then use it by string literal name by default in |
That works!
|
jet
in examples
jet
in examples
|
@endolith, this is also about a consistent message throughout the library. We'd like to present a clear alternative to |
@endolith, it looks like |
Perhaps just use |
Oh. |
Ok, rebased and removed nipy_spectral for now |
Some of these should probably use the new colormap proposed in #1599 |
/ping @endolith |
ok, rebased |
@@ -54,7 +54,7 @@ | |||
|
|||
ax0.imshow(image, cmap=plt.cm.gray, interpolation='nearest') | |||
ax0.set_title('Overlapping objects') | |||
ax1.imshow(-distance, cmap=plt.cm.jet, interpolation='nearest') | |||
ax1.imshow(-distance, cmap=plt.cm.gray, interpolation='nearest') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to use non-grayscale colormap here, as it better presents what is actually the result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, gray is probably one of the best options here.
I wanted to get terrain-like effect, but to get one the image with higher resolution and histogram equalization are required.
Thanks @endolith ! One minor comment from my side and we're ready to go. |
👍 |
Merging this, thank you @endolith! @scikit-image/core if we want to make some examples use viridis, we can use a different PR for that. |
DOC: change colormap away from "jet" in examples
jet
is generally discouraged as perceptually misleading: Replace "jet" as the default colormap matplotlib/matplotlib#875 (comment)