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

Skip to content

Commit a1a4233

Browse files
authored
Merge pull request #19996 from anntzer/rl
Small simplification to RadialLocator.
2 parents 1ba3ff1 + e0b507f commit a1a4233

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,13 @@ def __init__(self, base, axes=None):
419419
self._axes = axes
420420

421421
def __call__(self):
422-
show_all = True
423422
# Ensure previous behaviour with full circle non-annular views.
424423
if self._axes:
425424
if _is_full_circle_rad(*self._axes.viewLim.intervalx):
426425
rorigin = self._axes.get_rorigin() * self._axes.get_rsign()
427426
if self._axes.get_rmin() <= rorigin:
428-
show_all = False
429-
if show_all:
430-
return self.base()
431-
else:
432-
return [tick for tick in self.base() if tick > rorigin]
427+
return [tick for tick in self.base() if tick > rorigin]
428+
return self.base()
433429

434430
@_api.deprecated("3.3")
435431
def pan(self, numsteps):

0 commit comments

Comments
 (0)