Comments (9)
Just adding that the spacing issue seems unrelated to the toolbar:
scatter_matrix(df, alpha=0.5, width=600, height=600, xrotation=0).opts(toolbar='above')
from hvplot.
Just adding that the spacing issue seems unrelated to the toolbar:
Yes, I think the spacing issues have been there for some time, while the toolbar issue is relatively recent, but I haven't tried to do a git bisect to pin that down.
from hvplot.
Quick feedback:
- Toolbar issue: possibly introduced in holoviz/holoviews#5873
- Subplots not aligned: happened sometime around the Bokeh 3 transition (not sure it's a Bokeh 3 problem either)
https://holoviews.org/reference/containers/bokeh/GridSpace.html
There may be no hvPlot issue at all.
from hvplot.
Thanks. I've opened holoviz/holoviews#6126 for the toolbar issue, and @mattpap is looking at it from the Bokeh side.
from hvplot.
Bad plot alignment is caused by fixed frame sizing (Plot.frame_{width,height,align}
), which works reliably only for single plots and doesn't work well in all other cases (see e.g. issue bokeh/bokeh#13225). I suppose it's time to implement this properly.
from hvplot.
From the initial list of issues:
- subplots all lined up: Mateusz indicated this is a Bokeh issue
- a single Bokeh toolbar for the entire figure: HoloViews issue fixed in holoviz/holoviews#6127
- axis labels readable, text not overlapping
That leaves us with 3). The default Bokeh formatter is the BasicTickFormatter
:
Comparing that to the default of plotly express:
We can get a similar behavior defining a NumericalTickFormatter
:
However, it also has its limits:
Certainly, we could better document xformatter/yformatter
. But should we also consider defaulting to a more user-friendly formatter?
from hvplot.
Defaulting to a more usable formatter sounds like a great idea. @mattpap , any idea why the tick formatter didn't decide to drop the intermediate tick marks? Here I'd be hoping to get one label on the left of the x axis, and one on the right:
from hvplot.
any idea why the tick formatter didn't decide to drop the intermediate tick marks?
This is handled setting Axis.major_label_policy = NoOverlap()
. When this was implemented the default (AllLabels
) was left for backwards compatibility. Tickers and tick formatters have no access to the screen space, so they can't make any adjustments based on the positioning of labels.
from hvplot.
Thanks! Ok, @maxime, can you try out the NoOverlap option with NumericalTickFormatter? For hvPlot I strongly favor improving the user experience over preserving previous defaults.
from hvplot.
Related Issues (20)
- Removing interactive from a plot
- `datashade=True` doesn't work with `cuDF`
- ValueError when trying to display a netCDF file with the explorer
- Explorer: support exploring the variables of an xarray Dataset
- hvdataset package
- Odd behaviour in order of hvplot bars given number of columns. HOT 2
- Cannot overlay hvplot labels on inverted axes.
- Bad error message for missing kwarg in labels
- Bar Chart x axis labels not formatted HOT 3
- hvplot.image ignores data_aspect when responsive is True HOT 3
- option to remove invisible output from importing hvplot.pandas/xarray HOT 2
- Explorer doesn't infer the right x/y/groupby values for gridded data HOT 3
- Support reactive expressions in arguments and options HOT 6
- Support xyzservices tiles HOT 1
- Alpha not supported with plotly backend HOT 2
- No longer internally call `.reset_index()`
- Allow to pass options to tiles
- xarray Dataset subplot variables HOT 2
- Stacking plots with a datetime Index and plotly not showing data HOT 1
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 hvplot.