[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plotting help needed.
From: |
Etienne Grossmann |
Subject: |
Re: plotting help needed. |
Date: |
Sun, 23 Oct 2005 18:19:14 -0400 |
User-agent: |
Mutt/1.4.2.1i |
Hi Kapat,
what about sthing like this?
octave:459> xx = linspace (-1,1,101); yy = sin (3*xx); zz = sqrt
(abs(xx)).*cos(3*xx);
octave:460> __gnuplot_set__ term dumb
octave:461> clg
octave:462> plot (xx,yy,"r");
octave:463> plot (xx,zz,"g");
octave:464> __gnuplot_set__ out "foo.eps"
octave:465> __gnuplot_set__ term postscript color eps
octave:466> replot
Hth,
Etienne
On Sun, Oct 23, 2005 at 04:42:14PM -0400, Prasenjit Kapat wrote:
# Hi,
# I have to use Octave 2.1.50 on Fedora core 2, REMOTELY. I plot into a
# ps file then ftp the ps file to see the plots. But when I plot more
# than one graph on the same figure, it creates a new page in the ps
# file for doing so. Finally when I am done plotting some five graphs, I
# have a 5-page ps file, from which I have to extract the 5-th page for
# my purpose.
# [ page 1 has graph 1;
# page 2 has graph 1 and graph 2;
# page 3 has graph 1 , graph 2 and graph 3;....
# ]
# The 'replot' doesn't help b/c I am working remotely and I do not want
# to pull up the gnuplot window. A sample code is like this:
#
# x=[1 2 3]; y=[4 5 6];
# gset term postscript
# gset output "plots.ps";
# plot(x,y,"@12;graph 1;",-x,y,"@13;graph 2;",-x,-y,"@14;graph 3");
# closeplot()
#
# what I want is just a one page ps file (rather than a 3 page one) with
# all the three graphs, so that I don't have to do the extraction
# process.
#
# Thanks in advance
# 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
# -------------------------------------------------------------
#
--
Etienne Grossmann ------ http://www.cs.uky.edu/~etienne
-------------------------------------------------------------
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
-------------------------------------------------------------