Commit 85a7e826 authored by Loic Huder's avatar Loic Huder
Browse files

Fix of first interactivity example in advanced_matplotlib

parent 6a5f64c0
......@@ -280,11 +280,11 @@
X = np.arange(0, 10, 0.01)
l, = plt.plot(X, X**2)
def change_color(event):
ax.add.set_color('green')
l.set_color('green')
f.canvas.mpl_connect('button_press_event', change_color)
```
%% Cell type:markdown id: tags:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment