Commit 77149ba
committed
Fix axvspan for drawing slices on polar plots.
There's already special-casing for polar plots in bar() (using the same
`_interpolation_steps = 100`); it seems reasonable to use the same
approach for axvspan (e.g. `polar(); axvspan(0, pi/4)`).
It seems like making axhspan work (basically drawing full rings) is less
easy, but there's an easy enough workaround
(`polar(); bar(0, bottom=1, height=1, width=2*pi)`) as the "x" (theta)
extent is actually known in that case.1 parent 5c8cf78 commit 77149ba
File tree
3 files changed
+10
-0
lines changed- doc/api/next_api_changes/behavior
- lib/matplotlib
- axes
- tests
3 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
974 | 974 | | |
975 | 975 | | |
976 | 976 | | |
| 977 | + | |
977 | 978 | | |
978 | 979 | | |
979 | 980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
0 commit comments