8000 Merge pull request #2 from fariza/qt4_example_correction · fariza/matplotlib@4f5187f · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f5187f

Browse files
committed
Merge pull request #2 from fariza/qt4_example_correction
adjusting imports
2 parents 146a6eb + b34d58a commit 4f5187f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/user_interfaces/embedding_with_qt4_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
from matplotlib.backends.qt4_compat import QtCore, QtGui
1717
import numpy as np
18-
from matplotlib.backends._backend_qt4agg import (FigureCanvasQTAgg,
19-
FigureManagerQT,
18+
from matplotlib.backends._backend_qt4agg import (FigureCanvas,
19+
FigureManager,
2020
new_figure_manager)
2121

2222
from matplotlib.figure import Figure
@@ -71,9 +71,9 @@ def new_window_hard_way(self):
7171
# make a figure
7272
fig = Figure()
7373
# make a canvas
74-
canvas = FigureCanvasQTAgg(fig)
74+
canvas = FigureCanvas(fig)
7575
# make a manager from the canvas
76-
manager = FigureManagerQT(canvas, 1)
76+
manager = FigureManager(canvas, 1)
7777
# grab an axes in the figure
7878
ax = fig.gca()
7979
# plot some demo code

0 commit comments

Comments
 (0)
0