Esempio n. 1
0
plotitem.kwargs = {'linewidth':3,'markersize':5}

#plotitem = plotaxes.new_plotitem(name='ClawPack 3600', plot_type='1d')
#plotitem.outdir = '/users/ketch/research/claw42/fwave2/tr28800'
#plotitem.plot_var = 2       # q[2] is the stress
#plotitem.plotstyle = '-'
#plotitem.color = 'k'
#plotitem.kwargs = {'linewidth':3,'markersize':5}

#plotitem = plotaxes.new_plotitem(name='ClawPack 28800', plot_type='1d')
#plotitem.outdir = '/users/ketch/research/claw42/fwave2/'
#plotitem.plot_var = 0       # q[2] is the stress
#plotitem.plotstyle = '-'
#plotitem.color = 'k'
#plotitem.kwargs = {'linewidth':3}


plotdata.plotframe(10)
hold(False)
#plotitem.plotstyle = 's'
#plotitem.color = 'b'   
plotitem.plotstyle = 'o'
plotitem.color = 'r' 
plotdata.plotframe(190)

q1=plotitem.getframe(10).q
q2=plotitem.getframe(190).q
xc=plotitem.getframe(10).grids[0].xcenter
clf()
plot(xc,abs(q1[:,2]-q2[:,2]),'-k')
Esempio n. 2
0
# Figure:
plotfigure = plotdata.new_plotfigure(name='Solution', figno=1)
plotfigure.kwargs = {'figsize':[5,3]}

# Axes:
plotaxes = plotfigure.new_plotaxes(name='Strain')
#plotaxes.xlim = [73,79]

plotitem = plotaxes.new_plotitem(name='SharpClaw 3600', plot_type='1d')
plotitem.plot_var = 0       # q[2] is the stress
plotitem.plotstyle = 's'
plotitem.color = 'b'   # could use 'r' or 'red' or '[1,0,0]'
plotitem.kwargs = {'linewidth':3,'markersize':10}

plotitem = plotaxes.new_plotitem(name='ClawPack 3600', plot_type='1d')
plotitem.outdir = '/users/ketch/research/claw42/fwave2/3600'
plotitem.plot_var = 0       # q[2] is the stress
plotitem.plotstyle = 'o'
plotitem.color = 'r'
plotitem.kwargs = {'linewidth':3,'markersize':10}

#plotitem = plotaxes.new_plotitem(name='ClawPack 28800', plot_type='1d')
#plotitem.outdir = '/users/ketch/research/claw42/fwave2/'
#plotitem.plot_var = 0       # q[2] is the stress
#plotitem.plotstyle = '-'
#plotitem.color = 'k'
#plotitem.kwargs = {'linewidth':3}


plotdata.plotframe(100)
Esempio n. 3
0
# Figure:
plotfigure = plotdata.new_plotfigure(name='Solution', figno=1)
plotfigure.kwargs = {'figsize': [5, 3]}

# Axes:
plotaxes = plotfigure.new_plotaxes(name='Strain')
#plotaxes.xlim = [73,79]

plotitem = plotaxes.new_plotitem(name='SharpClaw 3600', plot_type='1d')
plotitem.plot_var = 0  # q[2] is the stress
plotitem.plotstyle = 's'
plotitem.color = 'b'  # could use 'r' or 'red' or '[1,0,0]'
plotitem.kwargs = {'linewidth': 3, 'markersize': 10}

plotitem = plotaxes.new_plotitem(name='ClawPack 3600', plot_type='1d')
plotitem.outdir = '/users/ketch/research/claw42/fwave2/3600'
plotitem.plot_var = 0  # q[2] is the stress
plotitem.plotstyle = 'o'
plotitem.color = 'r'
plotitem.kwargs = {'linewidth': 3, 'markersize': 10}

#plotitem = plotaxes.new_plotitem(name='ClawPack 28800', plot_type='1d')
#plotitem.outdir = '/users/ketch/research/claw42/fwave2/'
#plotitem.plot_var = 0       # q[2] is the stress
#plotitem.plotstyle = '-'
#plotitem.color = 'k'
#plotitem.kwargs = {'linewidth':3}

plotdata.plotframe(100)