[IPython-dev] Notebook: Horizontal layout for multiple figures in output cell

Patrick Surry patrick.surry at gmail.com
Fri Feb 21 13:13:02 EST 2014


If you're using matplotlib for your plots, you can use subplots to create a
horizontal (or arbitrary grid) of plots in an output cell.

Try this example
http://matplotlib.org/examples/pylab_examples/subplot_demo.html

but change plt.subplot(2,1,1) and plt.subplot(2,1,2) (which indicate a 2x1
grid and plot #1 and #2) to plt.subplot(1,2,1) and plt.subplot(1,2,2) which
does the same in a 1x2 grid.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140221/9deb1461/attachment.html>


More information about the IPython-dev mailing list