##// END OF EJS Templates
Merge pull request #11803 from brandonwillard/fix-duplicate-prefix...
Merge pull request #11803 from brandonwillard/fix-duplicate-prefix Fix duplicate prefix in `all_completions` output

File last commit:

r16114:15cc5a8e
r25140:5073312d merge
Show More
inline_figshow.py
23 lines | 583 B | text/x-python | PythonLexer
/ tools / tests / inline_figshow.py
Fernando Perez
Add manual test file as per review by @minrk.
r6539 """Manual test for figure.show() in the inline matplotlib backend.
This script should be loaded for interactive use (via %load) into a qtconsole
MinRK
pylab_figshow -> inline_figshow
r15182 or notebook initialized with the inline backend.
Fernando Perez
Add manual test file as per review by @minrk.
r6539
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
MinRK
pylab_figshow -> inline_figshow
r15182 plt.ioff()
Fernando Perez
Add manual test file as per review by @minrk.
r6539 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()