Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5449bcd

Browse files
committed
Remove old bits of changes
1 parent375d4ca commit5449bcd

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
ifself.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
returnself.get_locator(vmin,vmax).tick_values(vmin,vmax)
13341334

13351335
defnonsingular(self,vmin,vmax):
1336-
ifnotnp.isfinite(vmin)ornotnp.isfinite(vmax):
1337-
return1,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
ifvmin==vmax:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp