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

Skip to content

Commit 3e3d9bd

Browse files
committed
Add a note about setting the color
1 parent 10ddacb commit 3e3d9bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/widgets/painter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ def callback(x, y):
3232

3333
# Create the painter tool and show the plot.
3434
p = Painter(ax, callback)
35+
p.label = 1 # set the color
3536
plt.show()

0 commit comments

Comments
 (0)