br@ymir :~/temp$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt >>> fig=plt.figure() >>> fig.get_size_inches() array([ 8., 6.]) >>> fig.set_size_inches([8.,12.]) >>> ax=fig.add_subplot(111) >>> ax.plot([1,1,2],[3,4,5],'ro-') [<matplotlib.lines.Line2D object at 0x2428590>] >>> ax1 = fig.add_subplot(212) >>> ax1.plot([2,3,4],[8,9,11],'bs-') [<matplotlib.lines.Line2D object at 0x2461450>] >>> fig.subplots_adjust()
produces
and you can easily customize it further.
ev-br source share