-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Shape elements cannot display legends #450
Comments
Also see SciTools/cartopy#1500 |
Are we waiting for this to be merged on cartopy? Is there anything that needs to be done on geoviews? |
Assigning to the 1.8.2 milestone which we can bump if the cartopy PR referenced above isn't merged and in a new cartopy release. |
I think once the cartopy people get around to checking out my PR there may be some more discussions over there (as the FeatureArtist seems to promise more than it actually does, which may have repercussions on some implementation details for the legend handler), but it should be reasonably straightforward to merge as far as simple legends are concerned. What it doesn't solve for instance is that geoviews Shapes are drawn using the FeatureArtist which does not draw point shapes IIRC, but I can't recall if there's an issue for that somewhere or of there've been recent developments that would address that. |
The following throws an error if legend labels are requested in the matplotlib backend:
or
both choke on the fact that the Legend Handler is handed a cartopy
FeatureArtist
, shown by comparison of the generated matplotlib figure coming out ofgv.Shape
vs that fromgv.Path
:gives
and
gives
I assume fixing this will either have to have
GeoShapePlot
hand over something else thanFeatureArtist
or implement a legend handler that can deal with Feature Artists in some way.The text was updated successfully, but these errors were encountered: