-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't workingdevrel-watchTickets DevRel is watchingTickets DevRel is watching
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdevrel-watchTickets DevRel is watchingTickets DevRel is watching