redim.range with doesn't work with QuadMesh
See original GitHub issueIt appears like redim.range
has no effect with QuadMesh objects. I will use a slightly modified example from the QuadMesh docs
n = 8 # Number of bins in each direction
xs = np.logspace(1, 3, n)
ys = np.linspace(1, 10, n)
zs = np.arange((n-1)**2).reshape(n-1, n-1)
qmesh = hv.QuadMesh((xs, ys, zs))
print(qmesh.range('z'))
qmesh.redim.range(z=(1,2))
print(qmesh.range('z'))
prints
(0, 48)
(0, 48)
Looking closely at the the example, you can see this bug is at work there as well. The third figure calls redim to “set the z-dimension range to maintain the full color range of the colormap”. There is no colorbar, but it is clear that the redim did not have an effect, since the colormap is saturated.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Issues with projections and overlaying coastlines on a ...
I am attempting to create an overlay of a quadmesh hvplot and a geoviews feature coastline both with the cartopy Robinson projection.
Read more >ioam/holoviews - Gitter
not sure about the layout issue but I afaik redim.range on the curve should work. are the dimensions of the heatmap and the...
Read more >manually set latitude, longitude range for geoviews
I am plotting data using the GeoViews QuadMesh element. I can't find a way to expand the geographic region of my plot beyond...
Read more >Styling Mapping — HoloViews v1.15.3
However often columns in the data will not directly map to a visual property, ... and they can thus be controlled using the...
Read more >Resampling Grids — GeoViews 1.9.5+g5eb9cd4-dirty ...
In this user guide we will summarize how to work with different grid types including rectilinear, ... Dataset(ds).redim.range(air=(230, 300)) gvds.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, sorry for the confusion,
redim.range
is not working,redim.label
is. The PR above will fix the issue withredim.range
.PR now merged. Thanks for making me look into this, it let me standardize the
range
implementations a lot.