Closed rabernat closed 7 years ago
I don't think qmesh.redim.label(x='lat', y='depth')
works either.
I don't think qmesh.redim.label(x='lat', y='depth') works either.
Are you sure? Seems to work for me. Do note that redim (like most other operations in holoviews) is not an inplace operation.
The inplace issue would also apply to my original example with redim.range
, no?
However, if I rewrite it as
qmesh = hv.QuadMesh((xs, ys, zs))
print(qmesh.range('z'))
newmesh = qmesh.redim.range(z=(1,2))
print(newmesh.range('z'))
it gives the same result
Yes, sorry for the confusion, redim.range
is not working, redim.label
is. The PR above will fix the issue with redim.range
.
PR now merged. Thanks for making me look into this, it let me standardize the range
implementations a lot.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
It appears like
redim.range
has no effect with QuadMesh objects. I will use a slightly modified example from the QuadMesh docsprints
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.