8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 146a6eb + b34d58a commit 4f5187fCopy full SHA for 4f5187f
examples/user_interfaces/embedding_with_qt4_manager.py
@@ -15,8 +15,8 @@
15
16
from matplotlib.backends.qt4_compat import QtCore, QtGui
17
import numpy as np
18
-from matplotlib.backends._backend_qt4agg import (FigureCanvasQTAgg,
19
- FigureManagerQT,
+from matplotlib.backends._backend_qt4agg import (FigureCanvas,
+ FigureManager,
20
new_figure_manager)
21
22
from matplotlib.figure import Figure
@@ -71,9 +71,9 @@ def new_window_hard_way(self):
71
# make a figure
72
fig = Figure()
73
# make a canvas
74
- canvas = FigureCanvasQTAgg(fig)
+ canvas = FigureCanvas(fig)
75
# make a manager from the canvas
76
- manager = FigureManagerQT(canvas, 1)
+ manager = FigureManager(canvas, 1)
77
# grab an axes in the figure
78
ax = fig.gca()
79
# plot some demo code
0 commit comments