plotclaw.py.html | ![]() |
Source file: plotclaw.py | |
Directory: /Users/rjl/git/rjleveque/clawpack-4.6.3/apps/advection/2d/swirl/amr | |
Converted: Mon Jan 21 2013 at 20:15:23 using clawcode2html | |
This documentation file will not reflect any later changes in the source file. |
def plotclaw(): """ Basic plotting script. Execute from unix by $ python plotclaw.py Additional plot parameters are set in setplot.py. """ from pyclaw.data import ClawPlotData from pyclaw.plotting import printframes plotdata = ClawPlotData() plotdata.plotdir = 'plots' # directory where plots will appear plotdata.setplot = True # so that setplot.py will be called to initialize # Parameters used only when creating html and/or pdf hardcopy # via pyclaw.plotting.printframes: plotdata.printfigs = True # print figures? plotdata.print_format = 'png' # file format plotdata.print_framenos = 'all' # list of frames to print plotdata.print_fignos = 'all' # list of figures to print plotdata.html = True # create html files of plots? plotdata.latex = True # create latex file of plots? plotdata.latex_framesperline = 1 # layout of plots plotdata.latex_figsperline = 2 # layout of plots plotdata.latex_pdf = False # also run pdflatex? # create html files of plots: printframes(plotdata, verbose=False) #---------------------------------------------------------- if __name__=='__main__': # if executed at command line prompt, simply call the function: plotclaw()