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
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.
On Aug 20, 11:39 am, matei <ma...@uottawa.ca> wrote:
> 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
> 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?
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:
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. 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
On Aug 20, 2:57 pm, James Quirk <j...@galcit.caltech.edu> wrote:
> > 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?
> 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:
> 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.