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

Commit34c6162

Browse files
committed
Fix review items.
1 parentb33dc6f commit34c6162

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

‎examples/user_interfaces/pylab_with_gtk_sgskip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
importgi
2727
gi.require_version('Gtk','3.0')
2828
fromgi.repositoryimportGtk
29-
next=8# where to insert this in the mpl toolbar
29+
pos=8# where to insert this in the mpl toolbar
3030
button=Gtk.Button('Click me')
3131
button.show()
3232

@@ -40,8 +40,8 @@ def clicked(button):
4040
toolitem.set_tooltip_text('Click me for fun and profit')
4141

4242
toolitem.add(button)
43-
toolbar.insert(toolitem,next)
44-
next+=1
43+
toolbar.insert(toolitem,pos)
44+
pos+=1
4545

4646
# now let's add a widget to the vbox
4747
label=Gtk.Label()

‎examples/widgets/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ax.set_xlim(-2,2)
2121
ax.set_ylim(-2,2)
2222

23-
# Set useblit=True onsome backends for enhanced performance.
23+
# Set useblit=True onmost backends for enhanced performance.
2424
cursor=Cursor(ax,useblit=True,color='red',linewidth=2)
2525

2626
plt.show()

‎examples/widgets/span_selector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def onselect(xmin, xmax):
3838
ax2.set_ylim(thisy.min(),thisy.max())
3939
fig.canvas.draw()
4040

41-
# Set useblit=True onsome backends for enhanced performance.
41+
# Set useblit=True onmost backends for enhanced performance.
4242
span=SpanSelector(ax1,onselect,'horizontal',useblit=True,
4343
rectprops=dict(alpha=0.5,facecolor='red'))
4444

‎lib/matplotlib/pyplot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def _backend_selection():
9696
rcParams['backend']='qt5Agg'
9797
elif'gtk'insys.modulesand'gi'insys.modules:
9898
fromgi.repositoryimportGObject
99-
ml=GObject.MainLoop
100-
ifml().is_running():
99+
ifGObject.MainLoop().is_running():
101100
rcParams['backend']='GTK3Agg'
102101
elif'Tkinter'insys.modulesandnotbackend=='TkAgg':
103102
# import Tkinter

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp