Skip to content
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

GridSpace with one axis renders without tools in Bokeh #6222

Open
1 task
stanwest opened this issue May 7, 2024 · 0 comments
Open
1 task

GridSpace with one axis renders without tools in Bokeh #6222

stanwest opened this issue May 7, 2024 · 0 comments
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@stanwest
Copy link
Contributor

stanwest commented May 7, 2024

Software version info

  • Bokeh: occurs for at least 3.4.1, 3.3.4, and 3.2.2 but not 2.4.3
  • Holoviews: occurs for at least 1.18.3 and 1.18.0 but not 1.17.1

Expected and observed behaviors

When rendered with the Bokeh backend, GridSpace plots that have one axis lack any tools; the toolbar shows only the Bokeh icon. The behavior I expect is for the plots to have tools, as happens with, e.g., Bokeh 2.4.3 and Holoviews 1.17.1.

Complete, minimal, self-contained example code that reproduces the issue

import holoviews
holoviews.extension("bokeh")

row_grid = holoviews.GridSpace(
    {u: holoviews.Labels([(0, 0, u)]) for u in "AB"}, kdims=["u"]
).options(holoviews.opts.Labels(toolbar=None))
row_grid

row_grid, bokeh 3 4 1, holoviews 1 18 3

(The toolbar=None option works around #6126.)

When one adds another dimension, the GridSpace renders with tools, as I expect:

col_grid = row_grid.add_dimension("t", 0, "T")
col_grid

col_grid, bokeh 3 4 1, holoviews 1 18 3

However, when one suppresses either axis of that GridSpace, the result again renders without tools:

col_grid.options(holoviews.opts.GridSpace(yaxis=None))

onlyx_col_grid, bokeh 3 4 1, holoviews 1 18 3

col_grid.options(holoviews.opts.GridSpace(xaxis=None))

onlyy_col_grid, bokeh 3 4 1, holoviews 1 18 3

(The vertical shift of the u axis is another problem.)

With Bokeh 2.4.3 and Holoviews 1.17.1, all four of the above plots have full toolbars.

  • I may be interested in making a pull request to address this
@philippjfr philippjfr added this to the 1.19.0 milestone May 8, 2024
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants