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

Skip to content

Commit a50a69d

Browse files
committed
TST: allow flipped
1 parent f3350f5 commit a50a69d

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