##// END OF EJS Templates
Partly revert "remove now-obsolete use of skip_doctest outside core"...
Partly revert "remove now-obsolete use of skip_doctest outside core" This partly reverts commit 02234da0d461f5ddee142d51952dc10a86b8074e. test_decorators.py is intended to test skip_doctest, the removing was wrong.

File last commit:

r16114:15cc5a8e
r26938:fda2ebea
Show More
inline_figshow.py
23 lines | 583 B | text/x-python | PythonLexer
"""Manual test for figure.show() in the inline matplotlib backend.
This script should be loaded for interactive use (via %load) into a qtconsole
or notebook initialized with the inline backend.
Expected behavior: only *one* copy of the figure is shown.
For further details:
https://github.com/ipython/ipython/issues/1612
https://github.com/matplotlib/matplotlib/issues/835
"""
import numpy as np
import matplotlib.pyplot as plt
plt.ioff()
x = np.random.uniform(-5, 5, size=(100))
y = np.random.uniform(-5, 5, size=(100))
f = plt.figure()
plt.scatter(x, y)
plt.plot(y)
f.show()