Skip to content

Parcoords line opacity, rgba color not working #2699

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
noob-procrastinator opened this issue Aug 10, 2020 · 7 comments
Open

Parcoords line opacity, rgba color not working #2699

noob-procrastinator opened this issue Aug 10, 2020 · 7 comments
Assignees
Labels
bug something broken P3 backlog
Milestone

Comments

@noob-procrastinator
Copy link

The documentation specifies that the parcoords' line argument color can be a an rgba string. This doesn't work though and the lines remain a solid color as if using only the rgb part.

newplot(3)

import plotly.express as px
import plotly.graph_objects as go

iris = px.data.iris()

fig = go.Figure(
 data=go.Parcoords(
    line_color="rgba(100,00,0,0.1)",
    dimensions=list([
        dict(label='sepal_length', values=iris.sepal_length),
        dict(label='sepal_width', values=iris.sepal_width),
        dict(tickvals=[1, 2, 3],
             label='species', values=iris.species_id,
             ticktext=iris.species_id.unique()),
    ]))
)

fig.write_html('parallel.html', auto_open=True)
@noob-procrastinator
Copy link
Author

It also doesn't work using the Line constructor and assigning an rgba color, or by defining an rgba colorscale.

@nicolaskruchten
Copy link
Contributor

Yes, I believe the docstring is incorrect in this case, and only RGB is supported.

@nicolaskruchten nicolaskruchten added the bug something broken label Aug 11, 2020
@nicolaskruchten nicolaskruchten added this to the v4.x milestone Aug 11, 2020
@noob-procrastinator
Copy link
Author

Is this achievable through another manor? I can see when doing a brush selection, the unselected lines go transparent and dark

@natchoeli
Copy link

This bug has not been fixed, right? And I guess the plan is to leave it as it is, correct?

@alexcjohnson
Copy link
Collaborator

We'd welcome a PR to add RGBA/opacity support to parcoords lines in https://github.com/plotly/plotly.js - but until that happens this is just a documentation bug (albeit a fairly subtle one, as currently we don't have a way in plotly.js/plotly.py to designate colors as not supporting opacity)

@noob-procrastinator
Copy link
Author

Is there any updates?

@Coding-with-Adam
Copy link
Contributor

hi @noob-procrastinator
Would you be interested in creating a PR for this, as Alex commented above?

Once a PR is created, we would tie it to this issue so everyone is updated on the progress.

@gvwilson gvwilson added the P3 backlog label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

7 participants