python Programming Glossary: pl.figure
AttributeError while adding colorbar in matplotlib http://stackoverflow.com/questions/2643953/attributeerror-while-adding-colorbar-in-matplotlib pylab as pl import numpy as np data np.random.rand 6 6 fig pl.figure 1 fig.clf ax fig.add_subplot 1 1 1 ax.imshow data interpolation.. pylab as pl import numpy as np data np.random.rand 6 6 fig pl.figure 1 fig.clf ax fig.add_subplot 1 1 1 cax ax.imshow data interpolation..
Matplotlib: how to set the current figure? http://stackoverflow.com/questions/7986567/matplotlib-how-to-set-the-current-figure the figures with import matplotlib import pylab as pl f1 pl.figure f2 pl.figure and can use the MATLAB like pyplot interface to.. with import matplotlib import pylab as pl f1 pl.figure f2 pl.figure and can use the MATLAB like pyplot interface to plot and draw.. can simply set figure f1 as the new current figure with pl.figure f1.number Another option is to give names or numbers to figures..
|