-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Use discrete colorbars for contours and polygons #1856
Comments
This is probably somewhat confusing but at least with latest master this works correctly if you set the options on Polygons, Contours is just used for the non-filled case: %%opts Polygons [show_legend=False colorbar=True width=325] (cmap='fire' line_width=0.1)
x,y = np.mgrid[-50:51, -50:51] * 0.05
img = hv.Image(np.sin(x**2+y**3))
z0, z1 = img.range('z')
hv.operation.contours(img, levels=np.linspace(z0, z1, 10), overlaid=False, filled=True) |
That looks pretty! Might be one to add to the gallery... |
Good point, we need to improve our handling for discrete colormaps in general. |
Perhaps we should repurpose this issue to be about discrete colormaps? |
We now support a |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
If I take the simple contour example from the docs and add a
filled=True
option, the%%opts
seem to have no effect. I can no longer change the cmap or add a colorbar:Holoviews version is 1.8.3-x-ga66181c36 via conda-forge.
Possibly related to #1558
The text was updated successfully, but these errors were encountered: