Quantcast
Viewing latest article 9
Browse Latest Browse All 50

How to change label offset on Parasite Axes demo

Hi,
When I have numerous parasite axes I need to pull labels closer to the vertical line, otherwise they do not fit.
I tried adding all possible label-related adjustments, which I can scrape from the Web, to the demo
https://matplotlib.org/stable/gallery/axisartist/demo_parasite_axes.html
like
par2.yaxis.set_label_coords(20, 40)
par2.yaxis.offsetText.set_position((10, 20))
par2.yaxis.set_offset_position(“right”)
par2.axis[“right”].label.set_position((-10, -10))
but nothing works - label coordinates remain 1.0, 0.5

How to fix this? Is it related to Offset text positions not implemented · Issue #4476 · matplotlib/matplotlib · GitHub ?
Thank you

1 post - 1 participant

Read full topic


Viewing latest article 9
Browse Latest Browse All 50

Trending Articles