-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hv.Layout
with sizing_mode=scale_both
on its elements results in empty plot
#3451
Comments
In 1.12 we will be completely overhauling the layouts, at that point you can set |
Nice! Any estimate of when 1.12 would be ready for testing? |
It's mostly waiting on bokeh 1.1.0 to be released, if you're happy to install a bokeh dev release you can play around with it on this branch #3450 right away. |
Now that Holoviews 1.12.1 is out, I tried it again with your suggestion and with some slight modifications it does seem possible to get responsive graphs, nice! However, the behaviour of
If you try to set both a width and a height with
Does that mean there is currently no way to specify the aspect ratio of a responsive graph? import numpy as np
import holoviews as hv
hv.extension('bokeh')
scatter_plots = [
hv.Scatter(
(np.random.randn(10), np.random.randn(10)),
label=str(i)).opts(
height=300, # Setting a `width` as well fails
responsive=True)
for i in range(5)]
hv.Layout(scatter_plots).opts(plot={'tabs': True}) |
You should be able to specify the |
Great, thanks @jbednar! With that, I think this issue can be closed. |
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. |
Let's say you want to create a responsive
hv.Layout
with tabs. If the elements of ahv.Layout
havesizing_mode=scale_both
(or anysizing_mode
other thanfixed
for that matter), the resulting plot will be empty.I suspect this is related to @philippjfr's comment (#1230 (comment)):
Below is a minimal example that reproduces the problem:
The text was updated successfully, but these errors were encountered: