plotly.py
plotly.py copied to clipboard
Parallel plot: controlling angle and position behavior
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, # <--
)
)
See: https://github.com/skrub-data/skrub/issues/1367
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