question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

redim.range with doesn't work with QuadMesh

See original GitHub issue

It 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Sep 12, 2017

Yes, sorry for the confusion, redim.range is not working, redim.label is. The PR above will fix the issue with redim.range.

0reactions
philippjfrcommented, Sep 13, 2017

PR now merged. Thanks for making me look into this, it let me standardize the range implementations a lot.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found