plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Parallel plot: controlling angle and position behavior

Open Vincent-Maladiere opened this issue 8 months ago • 1 comments

Hi plotly team,

When the labelangle is below some threshold, the axis label gets centered automatically (like "choose_from(...)" on the figure below). Instead, we'd like to control this behavior with a parameter, so that long texts can fit the screen nicely, with a low angle and right alignment with the axis. WDYT?

Ideally, something like:

import plotly.graph_objects as go

go.Figure(
    go.Parcoords(
        dimensions=[
            {
                "label": "hello " * 5,
                "values": [1, 2, 4, 5],
            }
        ],
        labelangle=20,
        labelside="top",
        align_center=False, # <-- 
    )
)

Image

See: https://github.com/skrub-data/skrub/issues/1367

Vincent-Maladiere avatar May 13 '25 15:05 Vincent-Maladiere

thanks for the suggestion @Vincent-Maladiere - it's a good idea but we are unlikely to get to it any time soon. if you or anyone else from the community would like to submit a PR, I can try to prioritize review. thanks again - @gvwilson

gvwilson avatar May 20 '25 14:05 gvwilson