holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.68k stars 402 forks source link

Improve contours, fix fill colors for contours #1558

Closed ea42gh closed 5 years ago

ea42gh commented 7 years ago
%%output backend='bokeh'
%%opts Polygons (cmap='hot')
from holoviews.operation import contours as hv_contours

x,y = np.meshgrid(np.linspace(-5,5,101), np.linspace(5,-5,101))
z=np.sin(x**2+y**2)*np.exp(-0.3*x)
hv.Image(z)+hv_contours(hv.Image(z), levels=[.2,.4,.6,.7,.85], filled=True, overlaid=False)

Suggestions:

ea42gh commented 7 years ago

geoviews has FilledContour and LineContour types with corresponding plotting classes for matplotlib

A uniform API for both holoviews and geoviews seems desirable

ea42gh commented 6 years ago
jlstevens commented 6 years ago

A uniform API for both holoviews and geoviews seems desirable

I agree. The contour operation needs some thought especially now the multi-interface PR is merged improving contour/path elements. I'm just not sure when we will get round to improving it...

philippjfr commented 6 years ago

Until we support holes in our polygons this will likely not be fixed. I do think we can support using the DictInterface eventually but it likely won't be in the next release.

philippjfr commented 5 years ago

As far as I can all the issues here have now been addressed by https://github.com/ioam/holoviews/pull/3092. Please reopen if you encounter issues.