10000 fixed PEP8 formatting · matplotlib/matplotlib@606d4a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 606d4a3

Browse files
committed
fixed PEP8 formatting
1 parent f1df42f commit 
8000
606d4a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/widgets/textbox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
initial_text = "t ** 2"
1010
l, = plt.plot(t, s, lw=2)
1111

12+
1213
def submit(text):
1314
ydata = eval(text)
1415
l.set_ydata(ydata)
1516
ax.set_ylim(np.min(ydata), np.max(ydata))
1617
plt.draw()
1718

1819
axbox = plt.axes([0.1, 0.05, 0.8, 0.075])
19-
text_box = TextBox(axbox, 'Evaluate', initial = initial_text)
20+
text_box = TextBox(axbox, 'Evaluate', initial=initial_text)
2021
text_box.on_submit(submit)
2122

2223
plt.show()

0 commit comments

Comments
 (0)
0