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

Skip to content

Commit 3a046ef

Browse files
authored
Merge pull request #11696 from anntzer/toolmanager-example
DOC: Don't force backend in toolmanager example.
2 parents 3b337c9 + 0367572 commit 3a046ef

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

examples/user_interfaces/toolmanager_sgskip.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,8 @@
1313
Using `matplotlib.backend_managers.ToolManager`
1414
"""
1515

16-
17-
import matplotlib
18-
# Change to the desired backend
19-
matplotlib.use('GTK3Cairo')
20-
# matplotlib.use('TkAgg')
21-
# matplotlib.use('QT5Agg')
22-
# matplotlib.use('WxAgg')
23-
matplotlib.rcParams['toolbar'] = 'toolmanager'
2416
import matplotlib.pyplot as plt
17+
plt.rcParams['toolbar'] = 'toolmanager'
2518
from matplotlib.backend_tools import ToolBase, ToolToggleBase
2619

2720

0 commit comments

Comments
 (0)