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

Skip to content

Commit a40d3b2

Browse files
committed
PEP8:
1 parent 69ec173 commit a40d3b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,19 +798,17 @@ def __init__(self, locator, tz=None, defaultfmt='%Y-%h-%d %H:%M:%S'):
798798
self._minutefmt = '%M'
799799
self._secondfmt = '%S'
800800

801-
802801
def __call__(self, x, pos=None):
803802
locator_unit_scale = float(self._locator._get_unit())
804803
dmin, dmax = self._locator.viewlim_to_dt()
805804
ticks = self._locator.tick_values(dmin, dmax)
806-
if not pos is None:
805+
if pos is not None:
807806
if not np.array_equal(ticks, self._oldticks):
808807

809808
fmt = self.defaultfmt
810809
self._formatter = DateFormatter(fmt, self._tz)
811810
tickdate = []
812811

813-
814812
for nn, tick in enumerate(ticks):
815813
tickdate += [num2date(tick)]
816814
print(tickdate)

0 commit comments

Comments
 (0)