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

Emulate all color options exposed by Plotly Express #226

Closed
11 of 17 tasks
tpvasconcelos opened this issue Oct 16, 2024 · 1 comment
Closed
11 of 17 tasks

Emulate all color options exposed by Plotly Express #226

tpvasconcelos opened this issue Oct 16, 2024 · 1 comment
Labels
COLOR Related to colouring options enhancement New feature or request

Comments

@tpvasconcelos
Copy link
Owner

tpvasconcelos commented Oct 16, 2024

This is a meta-issue to track and discuss the implementation of all color options exposed by Plotly Express.

This discussion started in #215 but I decided to open a new issue to discuss and track the more general goal of implementing of all color options exposed by Plotly Express, and make sure ridgeplot follows the same conventions laid out by the Plotly Express interface.

Here are some relevant references:


Notes

Plotly uses color_continuous_scale in Plotly Express functions and colorscale for its object API (e.g. marker.colorscale in go.Scatter)

From the Plotly docs:

legends are visible representations of the mapping between colors and data values. Legend markers also change shape when used with various kinds of traces, such as symbols or lines for scatter-like traces. Legends are configurable under the layout.legend attribute. Legends are the discrete equivalent of continuous color bars

Currently our built-in support for legends is also quite basic. Maybe this is something we could expand on in the future?

Also from the docs:

Most Plotly Express functions accept a color argument which automatically assigns data values to discrete colors if the data is non-numeric. If the data is numeric, the color will automatically be considered continuous.

Is there something we can do to emulate this color behaviour? There seems to be some conceptual overlap between Plotly's color and our colormode...

Tasks:

General

Continuous color scales

Discrete color scales

@tpvasconcelos tpvasconcelos added the enhancement New feature or request label Oct 16, 2024
@tpvasconcelos tpvasconcelos changed the title Emulate all color options exposed by Plotly express Emulate all color options exposed by Plotly Express Oct 16, 2024
@tpvasconcelos tpvasconcelos pinned this issue Oct 16, 2024
@tpvasconcelos tpvasconcelos added this to the Release 0.2.0 🚀 milestone Oct 18, 2024
@tpvasconcelos tpvasconcelos added the COLOR Related to colouring options label Nov 18, 2024
@tpvasconcelos
Copy link
Owner Author

All tasks have either been completed or turned into issues/discussions... 🚀

@tpvasconcelos tpvasconcelos unpinned this issue Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COLOR Related to colouring options enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant