You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A match_axes error is emitted with a make_subplots call
This code will emit the error
import deephaven.plot.express as dx
tips = dx.data.tips() # import a ticking version of the Tips dataset
# create 4 plots from within make_subplots
tipping_plots = dx.make_subplots(
dx.scatter(tips, x="TotalBill", y="Tip", by="Sex",
title="Tip amount by total bill"),
dx.scatter(tips, x="TotalBill", y="Tip", by="Sex",
title="Tip amount by total bill"),
rows=2, cols=1, shared_xaxes=True, shared_yaxes=False
)
Here is a workaround:
import deephaven.plot.express as dx
tips = dx.data.tips()
def unsafe_update(fig):
fig.update_xaxes(matches="x1")
# create 4 plots from within make_subplots
tipping_plots = dx.layer(
dx.scatter(tips, x="TotalBill", y="Tip", by="Sex",
title="Tip amount by total bill"),
dx.scatter(tips, x="TotalBill", y="Tip", by="Sex",
title="Tip amount by total bill"),
specs=[{
"y": [0, 0.45]
}, {
"y": [0.55, 1]
}],
unsafe_update_figure=unsafe_update
)
Engine Version: 0.39.0-SNAPSHOT
Web UI Version: 0.106.4
Python Version: 3.10.12
Java Version: 21.0.6
Groovy Version: 3.0.24
Barrage Version: 0.7.2
Browser Name: Chrome 134
User Agent OS: Windows NT 10.0
@deephaven/js-plugin-ui: 0.29.0
@deephaven/js-plugin-plotly-express: 0.13.1
The text was updated successfully, but these errors were encountered:
A match_axes error is emitted with a make_subplots call
This code will emit the error
Here is a workaround:
Engine Version: 0.39.0-SNAPSHOT
Web UI Version: 0.106.4
Python Version: 3.10.12
Java Version: 21.0.6
Groovy Version: 3.0.24
Barrage Version: 0.7.2
Browser Name: Chrome 134
User Agent OS: Windows NT 10.0
@deephaven/js-plugin-ui: 0.29.0
@deephaven/js-plugin-plotly-express: 0.13.1
The text was updated successfully, but these errors were encountered: