##// END OF EJS Templates
Merge pull request #1862 from minrk/bindkernel...
Merge pull request #1862 from minrk/bindkernel Minor bind_kernel improvements. * `bind_kernel()` on an already bound kernel is a no-op. * `%qtconsole` on an engine implies bind_kernel * add bind_kernel, and `%px %qtconsole` to docs

File last commit:

r6539:b23ab20a
r7315:7e71399b merge
Show More
pylab_figshow.py
23 lines | 661 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 pylab 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()