import os, sys import cdms, vcs import EzTemplate # Open file and retrieve data variable. fname = os.path.join(sys.prefix, 'sample_data/clt.nc') cfile = cdms.open(fname) data = cfile('clt') # Initialize vcs. x = vcs.init() # Configure the template. M = EzTemplate.Multi(rows=4, columns=3) M.legend.direction = 'vertical' # Plot data. for i in range(12): t = M.get(legend='local') x.plot(data[i], t)