Comments (5)
I think this is a reasonable feature request that should be fairly easy to implement.
from holoviews.
Fixed in a981515, let me know if it works for you so I can close this issue.
from holoviews.
Thanks for doing this!
This works:
z1.hist()
But this doesn't
In [6]:
z1.hist(bin_range=(1e-5, z1.data.max()))
Traceback (most recent call last):
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/holoviews/ipython/display_hooks.py", line 203, in wrapped
**kwargs)
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/holoviews/ipython/display_hooks.py", line 279, in layout_display
return display_figure(fig)
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/holoviews/ipython/display_hooks.py", line 168, in display_figure
figdata = renderer.figure_data(fig, figure_format)
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/holoviews/plotting/__init__.py", line 252, in figure_data
fig.canvas.print_figure(bytes_io, **kw)
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 2168, in print_figure
bbox = a.get_window_extent(renderer)
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/matplotlib/patches.py", line 491, in get_window_extent
return self.get_path().get_extents(self.get_transform())
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/matplotlib/path.py", line 518, in get_extents
transform = transform.frozen()
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/matplotlib/transforms.py", line 2067, in frozen
return blended_transform_factory(self._x.frozen(), self._y.frozen())
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/matplotlib/transforms.py", line 2201, in blended_transform_factory
return BlendedAffine2D(x_transform, y_transform)
File "/home/bnijholt/python/env_stable/lib/python2.7/site-packages/matplotlib/transforms.py", line 2148, in __init__
assert y_transform.is_separable
AssertionError
Out[6]:
:AdjointLayout [AdjointLayout]
:Histogram [Band gap] (Frequency)
from holoviews.
Presumably that's because
z1.data.max()
Returns np.NaN, so I think that behavior is desired, you provided an invalid range so it will complain. It should probably complain long before it gets to plotting but if you want to do that then just use:
z1.hist(bin_range=(1e-5, np.nanmax(z1.data)))
from holoviews.
Yes, works like a charm 👍
from holoviews.
Related Issues (20)
- datashade of NdOverlay of QuadMesh does not work HOT 4
- NdOverlay graph colors disappear for "show_legend=False" for Scatter graphs.
- Overlay of HLines with categorical axis doesn't work.
- holoview/matplotlib fails to plot a raster image with a log scale
- `match_aspect` parameter for bokeh's `BoxZoomTool` is not working HOT 4
- GridSpace with one axis renders without tools in Bokeh
- Removing the legend from NdOverlay also removes the colors
- HoloMap doesn't show new graph when previous graph was empty. HOT 1
- Enabling the Matplotlib backend for Holoviews breaks Matplotlib in notebooks HOT 3
- Buffer does not work as dict argument to Dynamic Map HOT 1
- `hv.Bars` with more than one `kdim` randomly generates incorrect x-ticks in some cases (matplotlib backend) HOT 3
- The pointerXY stream breaks on heatmaps with categorical kdims
- [matplotlib backend] Setting title for `hv.Bars` does not work HOT 1
- Bug with hvplot plotly violin plots using 'by' argument
- Adding tools to an Overlay has no effect
- Customize zoom icons for subcoordinate-y plots HOT 3
- PointDraw empty_value field not respected when using style mapping
- HoloViews kdims go missing when sent to a separate process HOT 1
- Lasso Select for Linked Selection is broken for Bar charts HOT 7
- Group or hide hover tools in Bokeh toolbar HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holoviews.