Show More
@@ -310,12 +310,12 b' def activate_matplotlib(backend):' | |||
|
310 | 310 | # magic of switch_backend(). |
|
311 | 311 | matplotlib.rcParams['backend'] = backend |
|
312 | 312 | |
|
313 | import matplotlib.pyplot | |
|
314 | matplotlib.pyplot.switch_backend(backend) | |
|
313 | # Due to circular imports, pyplot may be only partially initialised | |
|
314 | # when this function runs. | |
|
315 | # So avoid needing matplotlib attribute-lookup to access pyplot. | |
|
316 | from matplotlib import pyplot as plt | |
|
315 | 317 | |
|
316 | # This must be imported last in the matplotlib series, after | |
|
317 | # backend/interactivity choices have been made | |
|
318 | import matplotlib.pyplot as plt | |
|
318 | plt.switch_backend(backend) | |
|
319 | 319 | |
|
320 | 320 | plt.show._needmain = False |
|
321 | 321 | # We need to detect at runtime whether show() is called by the user. |
@@ -585,7 +585,7 b' class EmbeddedSphinxShell(object):' | |||
|
585 | 585 | if self.warning_is_error: |
|
586 | 586 | raise RuntimeError('Non Expected warning in `{}` line {}'.format(filename, lineno)) |
|
587 | 587 | |
|
588 |
self.cout |
|
|
588 | self.clear_cout() | |
|
589 | 589 | return (ret, input_lines, processed_output, |
|
590 | 590 | is_doctest, decorator, image_file, image_directive) |
|
591 | 591 |
General Comments 0
You need to be logged in to leave comments.
Login now