3 Created on Sun Jul 29 21:01:44 2018 8 import matplotlib.pyplot
as pl
15 def demo(iout=1,run='.',data='../data',dir=0,iv=1):
16 snapfile=os.path.join(data,run,
'snapshots.dat')
17 assert os.path.isfile(snapfile),
'the file '+snapfile+
' must exist' 22 imshow(dispatch.select.unigrid_plane(s,dir=dir,iv=iv))
23 pl.title(
'dispatch.graphics.imshow')
29 plot_values_along(pt,pp,dir=dir,iv=iv)
30 pl.title(
'dispatch.graphics.plot_values_along')
35 plot_patch_values_along(pt,pp,dir=dir,iv=iv,all=
True,marker=
'o',verbose=2)
36 pl.title(
'dispatch.graphics.plot_patch_values_along')
42 plot_patch_values_along(pt,pp,dir=dir,var=v,all=1,marker=
'o')
43 pl.title(
'dispatch.graphics.plot_patch_values_along')
49 if __name__ ==
'__main__':