# load repro to gain access to Matlab, View, and PNG builders from repro import * # instruct SCons to store file signatures in a separate .sconsign # file in each directory SConsignFile( None ) # loop over the different Matlab scripts to produce EPS figures figs = [] for i in range(1,6): figs += Matlab( 'fig%d.eps'%i,None, matfuncs =["SSSRRRFig%d('$TARGET')"%i]) # view EPS figures View( figs ) # generate PNG figures, used for the paper website, from EPS figures PNG( figs, density=100 )