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

Marginal plots are not colored/themed as expected #920

Open
jnumainville opened this issue Oct 1, 2024 · 0 comments
Open

Marginal plots are not colored/themed as expected #920

jnumainville opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jnumainville
Copy link
Collaborator

Description

Marginal plots are not colored/themed as expected.

Steps to reproduce
Create a plot with marginals

import deephaven.plot.express as dx

stocks = dx.data.stocks()

scatter = dx.scatter(
    stocks, 
    x="Price",
    y="Dollars",
    marginal_x="rug",
    marginal_y="violin"
)

Expected results
Marginals have the same color as the base plot.

Actual results
Marginals have different color(s) than the base plot. It looks like the colors are removed by the client then not added as expected by the colorway.
Screenshot 2024-10-01 at 5 09 57 PM

Additional details and attachments

This can be worked around by manually setting the color


stocks = dx.data.stocks()

scatter = dx.scatter(
    stocks, 
    x="Price",
    y="Dollars",
    marginal_x="rug",
    marginal_y="violin",
    color_discrete_sequence=["salmon"]
)
Screenshot 2024-10-01 at 5 12 42 PM

Versions

Engine Version: 0.36.1
Web UI Version: 0.90.0
Java Version: 19.0.1
Barrage Version: 0.6.0
Browser Name: Chrome 128
OS Name: macOS 10.15.7
@deephaven/js-plugin-plotly-express: 0.11.2
@deephaven/js-plugin-matplotlib: 0.4.1
@deephaven/js-plugin-ui: 0.21.0

@jnumainville jnumainville added bug Something isn't working triage labels Oct 1, 2024
@vbabich vbabich removed the triage label Oct 8, 2024
@vbabich vbabich added this to the October 2024 milestone Oct 8, 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
Projects
None yet
Development

No branches or pull requests

2 participants