-
-
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
%%opts has no effect #1230
Comments
The thing is that a %%opts Image Spread [width=400] This will make the subplots containing the Spread and the Image will be made slightly wider than default. You could also set it directly on a specific DynamicMap, e.g.: rgb_hist = hv.Image(count_img, bounds = extents)(plot=dict(width=400))
...
spread = hv.DynamicMap(lambda i: hv.Spread(stats_sampling[:, :, i]), kdims=kdims)(plot=dict(width=400)) |
%%opts Layout [shared_axes=False] Image Spread [width=500] Points Curve[width=400] I used the options above to make plot wider, but the slider is now behind plot. Is there any way to move slider to other locations, and make it longer, ie. across the entire width of the figure at the very bottom across the whole width of the figure? I'm also still a bit fuzzy on how to find out what option is available for what Element/container. Do you recommend which page to look at for finding these information? Thanks. |
There are ways of doing this, which involves supplying custom CSS, which is a bit of a pain. If you want to change it you can look at this issue: #1023 And use this custom css file to style the widgets: div.hololayout {
align-items: center;
}
div.holoframe {
width: 100%;
}
div.holowell {
display: flex;
align-items: center;
margin: 0;
}
form.holoform {
background-color: #fafafa;
border-radius: 5px;
overflow: hidden;
padding-left: 0.8em;
padding-right: 0.8em;
padding-top: 0.4em;
padding-bottom: 0.4em;
}
div.holowidgets {
padding-right: 0;
width: 50%;
margin: auto;
margin-top: 50px;
}
div.holoslider {
min-height: 0 !important;
height: 0.8em;
width: 60%;
}
div.holoformgroup {
padding-top: 0.5em;
margin-bottom: 0.5em;
}
div.hologroup {
padding-left: 0;
padding-right: 0.8em;
width: 50%;
}
.holoselect {
width: 92%;
margin-left: 0;
margin-right: 0;
}
.holotext {
width: 100%;
padding-left: 0.5em;
padding-right: 0;
}
.holowidgets .ui-resizable-se {
visibility: hidden
}
.holoframe > .ui-resizable-se {
visibility: hidden
}
.holowidgets .ui-resizable-s {
visibility: hidden
} After releasing 2.0 next month we're planning on rewriting the widgets from scratch to improve the flexibility and make this kind of thing easier.
|
You could try changing the width on
|
Sorry I didn't get around to answering your questions on Gitter. In general that's still a better place for questions like this though. |
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. |
I have a layout of 4 DynamicMaps. The default plot has the first column narrower and 2nd column square. I want to adjust the oversize of the figure, aspect of individual subplot using %%opts, but it not showing any impact.
The text was updated successfully, but these errors were encountered: