Skip to content

DH-19036: Deephaven Plotly Express make_subplots error #1149

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

Open
jnumainville opened this issue Mar 24, 2025 · 0 comments
Open

DH-19036: Deephaven Plotly Express make_subplots error #1149

jnumainville opened this issue Mar 24, 2025 · 0 comments
Assignees
Labels
bug Something isn't working triage

Comments

@jnumainville
Copy link
Collaborator

jnumainville commented Mar 24, 2025

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

@jnumainville jnumainville added bug Something isn't working triage labels Mar 24, 2025
@jnumainville jnumainville self-assigned this Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant