geoviews icon indicating copy to clipboard operation
geoviews copied to clipboard

Add a Barbs element

Open philippjfr opened this issue 7 years ago • 3 comments
trafficstars

Since we have a VectorField element now it would be nice if we had a similar Barbs element. Cartopy and matplotlib already support drawing barbs and it shouldn't be too difficult to draw barbs using bokeh too.

Here's what barbs look like in cartopy:

image

philippjfr avatar Feb 06 '18 17:02 philippjfr

Sounds good. For clarity, it would be helpful to paste a screenshot or link to another plotting program's barb glyphs to show what functionality would be expected, more concretely.

jbednar avatar Feb 06 '18 17:02 jbednar

I am interested in visualizing points with barbs in addition to the vector field example above.

What might be involved in, or where to start, getting an implementation equivalent to MPL's (https://matplotlib.org/api/_as_gen/matplotlib.pyplot.barbs.html#matplotlib.pyplot.barbs) over to bokeh/geoviews?

Here's MPL's barb demo (https://matplotlib.org/gallery/images_contours_and_fields/barb_demo.html#sphx-glr-gallery-images-contours-and-fields-barb-demo-py):

acrosby avatar Jul 25 '19 13:07 acrosby

I've been wondering when someone would start asking for this! :-)

jbednar avatar Jul 25 '19 18:07 jbednar

@jbednar Given mpl's implementation of barbs doesn't this issue belong to holoviews? I read the previous discussion that closed holoviz/holoviews#3901 based on cartopy's implementation.

dwr-psandhu avatar Feb 13 '23 15:02 dwr-psandhu