[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Image printing
From: |
Nicholas P. M. Longo (aka Nicholas P. Michalowski) |
Subject: |
Re: Image printing |
Date: |
Mon, 24 Feb 2003 14:25:39 -0600 (CST) |
I am still a bit of a octave novice myself but here is some info I do
know.
You can control the way gnuplot behaves with the gset command for example
x=[0:.01:1];
y=cos(2*pi*x);
gset xrange [-2:2]
gset yrange [-2:2]
plot(x,y)
There are some commands in Octave that do this kind of thing for you. For
If the aspect ratio is the concern you can issue the command before you
plot.
axis("square")
Will produce a plot with the x and y axes the same where gnuplot normally
wouldn't. To have gnuplot produce output to a file you have to choose the
kind of format you want. I don't believe it does pdf but if you wanted
postscript, you can use the term and output options.
For example you can create a postscript file (test.ps) by
gset term postscript
gset output "test.ps"
replot
To plot your graph. Gnuplot doesn't automatically update a plot when you
change an option, hence the replot command. There is a option you can set
in octave to automatically replotting. This can be done by setting the
variable automatic_replot to a non-zero value.
I found this out mostly by experimenting and looking at the gnu plot
manual (http://www.comnets.rwth-aachen.de/doc/gnu/gnuplot37/gnuplot.html)
to see which options I could attempt to play with.
Also the octave manual is always good to look at.
(http://www.octave.org/doc/octave_toc.html)
I hope that helps.
--Nick P. M. L.
On Mon, 24 Feb 2003, Jeff Sadowski wrote:
> I guess this is more of a gnuplot question but
> is there a way to print an image or save it as an image file or pdf?
>
> Is there a way for me to choose the scales on the graph?
>
> I'd like the horizantal scale to be the same as the vertical in some
> cases.
>
> Or is there another comand in octave that will print out the graph to a
> file?
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>
-------------------------------------------------------------
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
-------------------------------------------------------------
- Image printing, Jeff Sadowski, 2003/02/24
- Re: Image printing,
Nicholas P. M. Longo (aka Nicholas P. Michalowski) <=