Commit 61777e6
Fix theta breaks with negative angles causing partial-arc regression
ax.set_xticks() with negative radian values silently extends xlim below 0,
converting a full circle into a partial arc. When start is chosen so that
the first few months map to negative radians (e.g. start = -π/2), the theta
labels passed to set_xticks triggered this matplotlib behaviour.
Normalise all break positions into [0, 2π] for full-circle plots before they
are stored in panel_params.x.breaks so that set_xticks never receives a
negative value. Partial-arc plots are unaffected (their breaks are always
within [arc_lo, arc_hi] which is already in [0, 2π]).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent aca3f93 commit 61777e6
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
0 commit comments