ó ÙóýPc@s>dZddlmZeddgƒZd„Zd„ZdS(sÁ Set up the plot figures, axes, and items to be done for each frame. This module is imported by the plotting routines and then the function setplot is called to set the plot parameters. iÿÿÿÿ(tDatas claw.datas setprob.datacCsï|jƒ|jddddƒ}|jddƒ}d|_ddg|_d|_|jdd d d ƒ}d |_d |_d|_ t |_ t |_ t |_d|_d|_d|_t |_t |_d|_d|_t|_|S(s° Specify what is to be plotted at each frame. Input: plotdata, an instance of pyclaw.plotters.data.ClawPlotData. Output: a modified version of plotdata. tnamesq[0]tfignoitSolutiontautogš™™™™™ñ¿gš™™™™™ñ?tsolutiont plot_typet1dis-otbtpngtalli(t clearfigurestnew_plotfiguret new_plotaxestxlimitstylimitsttitlet new_plotitemtplot_vart plotstyletcolortplot_true_solnt afteraxestTruetshowt printfigst print_formattprint_framenost print_fignosthtmltlatextlatex_figsperlinetlatex_framesperlinetFalset latex_makepdf(tplotdatat plotfiguretplotaxestplotitem((sH/Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap6/wavepacket/setplot.pytsetplots,                 c Csêddlm}m}m}m}m}ddlm}|tj tj dƒ}|j }|tj |} tj dkr£tj || tj tj tj ƒ} nd} |tj | | dƒ|tj| ƒ} ||| dƒdS(Niÿÿÿÿ(tlinspacetmodtexptwheretsin(tplotièigà?tr(tnumpyR(R)R*R+R,tpylabR-tuserdatatxlowertxuppertttut mthbc_xuppertbetatfreq( t current_dataR(R)R*R+R,R-txtrueR4txshifttx0tqtrue((sH/Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap6/wavepacket/setplot.pyR=s( -N(t__doc__t pyclaw.dataRR1R'R(((sH/Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap6/wavepacket/setplot.pyts /