Commit ccd28bf
committed
fix guide_axis_theta: use 'auto' mode so angle is relative to tangent
In Matplotlib, ThetaTick has two label-rotation modes:
('default', N) — absolute N degrees (what tick_params(labelrotation=N) sets)
('auto', N) — tangential direction + N degrees offset
ggplot2's guide_axis_theta(angle=0) means labels tangential to the arc
(0° offset from the tangent), not horizontal. Patching tick._labelrotation
directly is the only way to set 'auto' mode with a user-angle offset since
ax.tick_params() always sets 'default' mode.1 parent 140e817 commit ccd28bf
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
342 | 345 | | |
343 | 346 | | |
344 | 347 | | |
| |||
0 commit comments