help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plot data on several figures


From: Prasenjit Kapat
Subject: Re: plot data on several figures
Date: Thu, 3 Nov 2005 20:41:32 -0500

Hi Fabian,

I had faced a similar kind of problem, and the solution suggested in
this list was good enough for me. I will give the same solution to
you, it should solve at least part of the problem. I have added a few
lines and commented out a few. Hope this helps.

>   clearplot
>   wert=1:125;
>   gset yrange [0:125]
>   gset grid
>#   gset term postscript;
>   gset xlabel "[u]=m/s"
>   gset ylabel "[y]=m"
>   gset ytics nomirror 0,25,125
>   gset key top
>
>#   figure(1);
>#   hold on
gset out "useless.txt"         #<<<<<<<<<<<
gset term dumb                  #<<<<<<<<<<<
>   gset title "Pos1=0.0m"
hold on                               #<<<<<<<<<<
>#   gset term postscript;
>#   gset output "pos1.eps"
>plot(wert,0:124,";_CFX_LES_Power_law_CalcLES___les_10_average_006___Velocity_;");
hold on                                #<<<<<<<<<<<<
> plot(wert,0:124,";_CFX_k_eps_smaller__keps_small_301___Velocity_;");
hold on                     #<<<<<<<<<<<<<<<
>plot(wert,0:124,";_CFX_k_eps_smaller_smooth__keps_small_300_high_turb_smooth_002___Velocity_;");
> hold off;

gset out "pos1.eps"               #<<<<<<<<<<<<
gset term postscript color eps  #<<<<<<<<<<<<<
replot                                     #<<<<<<<<<<<<<<

>#   figure(2);
>#   hold on;
gset out "useless.txt"
gset term dumb
>   gset title "Pos2=0.0m"
hold on                                 #<<<<<<<<<<<<<
>#   gset term postscript;
>#   gset output "pos2.eps"
>plot(wert,0:124,";_CFX_LES_Power_law_CalcLES___les_10_average_006___Velocity_;");
hold on                                 #<<<<<<<<<<<<<
> plot(wert,0:124,";_CFX_k_eps_smaller__keps_small_301___Velocity_;");
hold on   #<<<<<<<<<<<
>plot(wert,0:124,";_CFX_k_eps_smaller_smooth__keps_small_300_high_turb_smooth_002___Velocity_;");
>   hold off
gset out "pos2.eps"    #<<<<<<<<<<<<
gset term postscript color eps  #<<<<<<<<<<<
replot                       #<<<<<<<<<<<<<
closeplot()

By doing this, the issue of getting every single plot on a new page in
the ps file will be solved. And I think the hold off should work now.
At least it seemed to be working on my machine.

Others might be able to provide a better solution! Thanks to Etienne,
for the actual solution.

Kapat



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]