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

Skip to content

Commit 5449bcd

Browse files
committed
Remove old bits of changes
1 parent 375d4ca commit 5449bcd

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/matplotlib/blocking_input.py

Lines changed: 3 additions & 5 deletions
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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,6 @@ def tick_values(self, vmin, vmax):
13331333
return self.get_locator(vmin, vmax).tick_values(vmin, vmax)
13341334

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

0 commit comments

Comments
 (0)