Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e8ddad

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

4 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

63.7 KB
Loading
74.6 KB
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)