help-octave
[Top][All Lists]
Advanced

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

plot data on several figures


From: Fabian Braennstroem
Subject: plot data on several figures
Date: Thu, 3 Nov 2005 22:19:24 +0100
User-agent: Mutt/1.5.11

Hi,

I am a little bit confused about plotting multiple dataset
to several figures and print them to a e.g. postscript file.
My script for plotting looks like:

  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 title "Pos1=0.0m"
  gset term postscript;
  gset output "pos1.eps"
  
plot(wert,0:124,";_CFX_LES_Power_law_CalcLES___les_10_average_006___Velocity_;");
  plot(wert,0:124,";_CFX_k_eps_smaller__keps_small_301___Velocity_;");
  
plot(wert,0:124,";_CFX_k_eps_smaller_smooth__keps_small_300_high_turb_smooth_002___Velocity_;");
  hold off;

  figure(2);
  hold on;
  gset title "Pos2=0.0m"
  gset term postscript;
  gset output "pos2.eps"
  
plot(wert,0:124,";_CFX_LES_Power_law_CalcLES___les_10_average_006___Velocity_;");
  plot(wert,0:124,";_CFX_k_eps_smaller__keps_small_301___Velocity_;");
  
plot(wert,0:124,";_CFX_k_eps_smaller_smooth__keps_small_300_high_turb_smooth_002___Velocity_;");
  hold off

The problem is that I get the 'curves' from figure(1) on
figure(2) too. I thought using 'hold on/off' and 'figure'
would avoid that!?
And taking a look at the eps files, I get for every single
plot an extra page, so that on the first page of 'pos1.eps'
is just one plot, on the second two and on the last three.
Is there a way to reduce the pages to one with all three
plots?

Greetings!
Fabian
-- 



-------------------------------------------------------------
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]