Closed suvarchal closed 4 years ago
Thanks @suvarchal for the issue! Have you tried using clone=True
in the .opts
calls? You need to clone in order to apply the different options to the same Points
object as otherwise, .opts
simply changes the object in place. This is documented on this page.
@jlstevens , oops my bad, looking at https://geoviews.org/user_guide/Projections.html#Projecting-with-bokeh, it is almost tempting to do with other elements, now I see the trick there was relabel that created a new instance.
In general, I wonder isn't it better to always return a clone/new instance when a different projection is used? or is there a reason not to do it.
In general, I wonder isn't it better to always return a clone/new instance when a different projection is used?
HoloViews (and therefore Geoviews) has valid cases for setting options both with and without cloning. As such we leave this step up to the user and we generally avoid domain specific logic about when or when not to clone. I would say it is working as intended but perhaps the docs aren't clear enough of this issue. We would be very happy to hear any suggestions on improving the docs!
ALL software version info
Description of expected behavior and the observed behavior
Wish laying out different projections of data is as simple as shown in documentation
Complete, minimal, self-contained example code that reproduces the issue