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

Buttons disappear on hcat/vcat of plots #43

Open
Vaibhavdixit02 opened this issue Mar 25, 2021 · 0 comments
Open

Buttons disappear on hcat/vcat of plots #43

Vaibhavdixit02 opened this issue Mar 25, 2021 · 0 comments

Comments

@Vaibhavdixit02
Copy link

Describe the bug

Buttons seem to work on individual plot but then disappear when multiple plots are concatenated

Version info

Please provide the following:

  1. Commit 539f3ce943 (2020-09-23 23:17 UTC)
    Platform Info:
    OS: macOS (x86_64-apple-darwin18.7.0)
    CPU: Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-9.0.1 (ORCJIT, icelake-client)

  2. [a03496cd] PlotlyBase v0.5.0

MWE

function mytoggle(x, y)
    data = PlotlyBase.scatter(x=x, y=y)
    button1 = PlotlyBase.attr(; method="relayout", args=["yaxis.type", ""], label="linear")
    button2 = PlotlyBase.attr(; method="relayout", args=["yaxis.type", "log"], label="log")
    layout = PlotlyBase.Layout(updatemenus=[PlotlyBase.attr(; y=1.0,
                                                          yanchor="top",
                                                          buttons = [button1,
                                                                     button2,
                                                                     ])])
    PlotlyBase.Plot(data, layout)
end
mytoggle(rand(100), rand(100))

plots = hcat([mytoggle(rand(10), rand(10)) for i in 1:10]...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant