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

dx.make_subplots empties plots after clickthrough #1025

Open
alexpeters1208 opened this issue Nov 18, 2024 · 0 comments
Open

dx.make_subplots empties plots after clickthrough #1025

alexpeters1208 opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working devrel-watch Tickets DevRel is watching
Milestone

Comments

@alexpeters1208
Copy link
Contributor

There are cases where dx.make_subplots can kill its constituent plots and render them empty. Here is an example:

from deephaven import time_table
import deephaven.plot.express as dx

t_scatter = time_table("PT0.2s").update(
    [
        "Group = ii % 2 == 0 ? `A` : `B`",
        "X = Group == `A` ? randomGaussian(-5.0, 1.5) : randomGaussian(3.5, 5.0)",
        "Y = Group == `A` ? randomGaussian(4.0, 4.0) : randomGaussian(-0.5, 2.5)"
    ]
)

t_line = time_table("PT0.2s").update(
    ["X = 0.05 * ii", "Y1 = X * sin(X)", "Y2 = 5 * X * cos(X)"]
)



group_scatter_plot = dx.scatter(t_scatter, x="X", y="Y", by="Group")

line_plot_multi = dx.line(t_line, x="X", y=["Y1", "Y2"], yaxis_sequence=[1, 2])

combined_plots = dx.make_subplots(
    group_scatter_plot,
    line_plot_multi,
    rows=1, cols=2, shared_xaxes=False, shared_yaxes=False
)

Here is the result:
https://github.com/user-attachments/assets/0741e195-b719-4d2b-a3a5-c757c2201de4

@alexpeters1208 alexpeters1208 added bug Something isn't working triage labels Nov 18, 2024
@vbabich vbabich removed the triage label Nov 19, 2024
@vbabich vbabich added this to the November 2024 milestone Nov 19, 2024
@chipkent chipkent added the devrel-watch Tickets DevRel is watching label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devrel-watch Tickets DevRel is watching
Projects
None yet
Development

No branches or pull requests

4 participants