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

Skip to content

Commit 673afe7

Browse files
document reference requirement
1 parent f61ac07 commit 673afe7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,8 @@ def subplot_tool(targetfig=None):
15461546
"""
15471547
Launch a subplot tool window for a figure.
15481548
1549-
A `matplotlib.widgets.SubplotTool` instance is returned.
1549+
A `matplotlib.widgets.SubplotTool` instance is returned. You must maintain
1550+
a reference to the instance to keep the associated callbacks alive.
15501551
"""
15511552
if targetfig is None:
15521553
targetfig = gcf()

0 commit comments

Comments
 (0)