8000 TST: allow flipped · matplotlib/matplotlib@57a9d80 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57a9d80

Browse files
committed
TST: allow flipped
1 parent f35fd5b commit 57a9d80

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,8 @@ def refresh(self):
456456

457457
def view_limits(self, vmin, vmax):
458458
vmin, vmax = self.base.view_limits(vmin, vmax)
459+
if vmax > vmin:
460+
vmin = min(0, vmin)
459461
return mtransforms.nonsingular(vmin, vmax)
460462

461463

Loading
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,6 @@ def test_polar_theta_position():
764764
ax.set_theta_direction('clockwise')
765765

766766

767-
768-
769767
@image_comparison(baseline_images=['polar_rlabel_position'], style='default')
770768
def test_polar_rlabel_position():
771769
fig = plt.figure()

0 commit comments

Comments
 (0)
0