8000 Don't force backend in toolmanager example. · matplotlib/matplotlib@0367572 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0367572

Browse files
committed
Don't force backend in toolmanager example.
This allows one to set the backend from the matplotlibrc or the MPLBACKEND environment variable.
1 parent 4769f7b commit 0367572

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)
0