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

Skip to content

Commit 4e8ddad

Browse files
committed
TST: allow flipped
1 parent dc3f787 commit 4e8ddad

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
@@ -446,6 +446,8 @@ def refresh(self):
446446

447447
def view_limits(self, vmin, vmax):
448448
vmin, vmax = self.base.view_limits(vmin, vmax)
449+
if vmax > vmin:
450+
vmin = min(0, vmin)
449451
return mtransforms.nonsingular(vmin, vmax)
450452

451453

Loading
Loading

lib/matplotlib/tests/test_axes.py

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

757757

758-
759-
760758
@image_comparison(baseline_images=['polar_rlabel_position'], style='default')
761759
def test_polar_rlabel_position():
762760
fig = plt.figure()

0 commit comments

Comments
 (0)
0