plotting a subset of the domain

2 views
Skip to first unread message

matei

unread,
Aug 20, 2009, 11:39:55 AM8/20/09
to amrita-ebook
Hi,
I am having some trouble plotting a subset of my 2D computational
domain. I am trying the command "clip to ..." and "clip on ..." as
per the example in the help manual. However, when running the example
script, both "clip to" and "clip on" yield the same result. I
expected the "clip on" to rescale to the pagesize.
Does anybody have experience with plotting subsets of a computational
grid?
Thanks,
matei

matei

unread,
Aug 20, 2009, 11:46:38 AM8/20/09
to amrita-ebook
when i use "clip to" to make a plot, and then "clip on" to make a
second plot, the second plot does not cover the entire page.
However, if i use only "clip on" to plot something, then it seems to
do what was intended.

James Quirk

unread,
Aug 20, 2009, 2:57:33 PM8/20/09
to matei, amrita-ebook
Matei,
There is a difference between clip on and clip to, but the
example on manual page was badly chosen. To see the difference,
try running:

utilize example::CornerProblem
plugin amr_sol
do::EquationSet
do::Domain

postscript on
plotfile ps/grid_on.ps
clip on 29,39,10,10
plot grids

followed by:

utilize example::CornerProblem
plugin amr_sol
do::EquationSet
do::Domain

postscript on
plotfile ps/grid_to.ps
clip to 29,39,10,10
plot grids

Basically the "on" variant does an autoscale on the selected region
where as the "to" variant doesn't .

Anyhow rather than agonize over the syntactic why's and wherefore's
it for be easier for you to say what it is you would like to plot
then I'll see what I can do.

James






> Thanks,
> matei
> >

matei

unread,
Aug 20, 2009, 5:02:55 PM8/20/09
to amrita-ebook
James,
Thanks. What I wanted to do is to plot on the same page a series of
snapshots of a subset of my computational domain. I got it to work
now, and it looks something like this:

plotfile ps/composite_density1.ps
do n = 3, 30, 3
flowin io/model$n
plotarea 10,10+$n/2.9*30,190,30
frame plotarea
clip on 95, 0, 190, 30
DensityPlot
end do
plotfile

matei
Reply all
Reply to author
Forward
0 new messages