Esempio n. 1
0
from pyclaw.data import ClawPlotData
from pyclaw.plotting import plotframe
from pylab import hold, clf, plot

clf()
plotdata = ClawPlotData()
plotdata.outdir = './tr7200'

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

# Axes:
plotaxes = plotfigure.new_plotaxes(name='Stress')
plotaxes.xlim = [30,55]

plotitem = plotaxes.new_plotitem(name='SharpClaw 3600', plot_type='1d')
plotitem.plot_var = 2       # q[2] is the stress
plotitem.plotstyle = '-'
plotitem.color = 'k'   # could use 'r' or 'red' or '[1,0,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/'
Esempio n. 2
0
from pyclaw.data import ClawPlotData
from pyclaw.plotting import plotframe

plotdata = ClawPlotData()
plotdata.outdir = '.'

# 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 = '-'
Esempio n. 3
0
from pyclaw.data import ClawPlotData
from pyclaw.plotting import plotframe

plotdata = ClawPlotData()
plotdata.outdir = '.'

# 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 = '-'