Skip to content

Commit 54c996e

Browse files
committed
Remove old bits of changes
1 parent fba6973 commit 54c996e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/matplotlib/blocking_input.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,12 @@ def add_click(self, event):
204204
----------
205205
event : `~.backend_bases.MouseEvent`
206206
"""
207-
x = event.inaxes.xaxis.unconvert_units(event.xdata)
208-
y = event.inaxes.yaxis.unconvert_units(event.ydata)
209-
self.clicks.append((x, y))
207+
self.clicks.append((event.xdata, event.ydata))
210208
_log.info("input %i: %f, %f",
211-
len(self.clicks), x, y)
209+
len(self.clicks), event.xdata, event.ydata)
212210
# If desired, plot up click.
213211
if self.show_clicks:
214-
line = mlines.Line2D([x], [y],
212+
line = mlines.Line2D([event.xdata], [event.ydata],
215213
marker='+', color='r')
216214
event.inaxes.add_line(line)
217215
self.marks.append(line)

lib/matplotlib/dates.py

-2
Original file line numberDiff line numberDiff line change
@@ -1334,8 +1334,6 @@ def tick_values(self, vmin, vmax):
13341334
return self.get_locator(vmin, vmax).tick_values(vmin, vmax)
13351335

13361336
def nonsingular(self, vmin, vmax):
1337-
if not np.isfinite(vmin) or not np.isfinite(vmax):
1338-
return 1, 2 # initial range, no data plotted yet
13391337
# whatever is thrown at us, we can scale the unit.
13401338
# But default nonsingular date plots at an ~4 year period.
13411339
if vmin == vmax:

0 commit comments

Comments
 (0)