Show More
@@ -10,7 +10,7 b' import sys' | |||||
10 |
|
10 | |||
11 | # Third-party imports |
|
11 | # Third-party imports | |
12 | import matplotlib |
|
12 | import matplotlib | |
13 | from matplotlib.backends.backend_agg import new_figure_manager |
|
13 | from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg | |
14 | from matplotlib._pylab_helpers import Gcf |
|
14 | from matplotlib._pylab_helpers import Gcf | |
15 |
|
15 | |||
16 | # Local imports. |
|
16 | # Local imports. | |
@@ -222,3 +222,7 b' def send_figure(fig):' | |||||
222 | {mime : data} |
|
222 | {mime : data} | |
223 | ) |
|
223 | ) | |
224 |
|
224 | |||
|
225 | # Changes to matplotlib in version 1.2 requires a mpl backend to supply a default | |||
|
226 | # figurecanvas. This is set here to a Agg canvas | |||
|
227 | # See https://github.com/matplotlib/matplotlib/pull/1125 | |||
|
228 | FigureCanvas = FigureCanvasAgg |
General Comments 0
You need to be logged in to leave comments.
Login now