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

Duplicate labels on parallel categories #7339

Open
Ge0rges opened this issue Jan 21, 2025 · 1 comment
Open

Duplicate labels on parallel categories #7339

Ge0rges opened this issue Jan 21, 2025 · 1 comment

Comments

@Ge0rges
Copy link

Ge0rges commented Jan 21, 2025

Hello,

I am making a parallel categories plot with:

fig = px.parallel_categories(
        pivoted,
        dimensions=sorted_treatments,
        color="meth_numeric",
        color_continuous_scale=[
            (0.0, "blue"),
            (0.5, "orange"),
            (1.0, "red"),
        ],
        range_color=[0, 2],
    )
    
    fig.update_layout(
        title=f"Methylation state transitions in {genome.readable_name} across conditions",
        coloraxis_showscale=False
    )
    
    out_file = output_dir / f"{genome.readable_name}_{motif.motif}_parallel_categories.html"
    fig.write_html(str(out_file))

I get the following plot:
Image

How can I remove the duplicate labels of the categories (on what would be the Y axis of the image)?

@Ge0rges
Copy link
Author

Ge0rges commented Jan 21, 2025

Also I was wondering if I can set the ordering of the elements on the Y axis programatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant