[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help
From: |
Teemu Ikonen |
Subject: |
Re: help |
Date: |
Tue, 19 Sep 2000 14:48:55 +0300 (EET DST) |
On Mon, 18 Sep 2000, Barbara Zubik-Kowal wrote:
> I found out that the pictures made in octave are in
> landscape not in portait. After putting my pictutes
> (the .ps files made by octave) to LaTeX file the
> pictures are rotated.
Actually I suffered from the same problem myself, so I fixed my print
function a bit. This one produces large color .eps-files. You can adjust
the settings easily yourself, just type
help set term postscript
in gnuplot to see what's available.
Here's the new function:
function print(filename)
#function print(filename)
#
# Prints a plot to a given eps-file filename
graw('set terminal postscript eps color blacktext "Helvetica" 35Ün');
graw("set size 2,2Ün")
output = sprintf("set output Ü"%sÜ"Ün", filename);
graw(output);
graw("replotÜn");
graw("set size 1,1Ün");
graw("set output Ü"/dev/nullÜ"Ün");
graw("set terminal x11Ün");
endfunction
> What to do to have lines in dotted, dash-dotted and
> dashed in the pictures created by octave.
> In Matlab it was for example
>
> plot(a,b,':') dotted
> plot(a,b,'-.') dash-dotted
> plot(a,b,'--') dashed
Gnuplot has poor support for different line styles. I think the only
usable ones are line "-", dots ".", points "@" and linespoints "-@". You
can try to differentiate your plots by either using different point
symbols or different line widths, although the octave graphics API
doesn't support this directly.
> Another my problem is that octave puts automatically
> the legend :
> line 1 -----
> line 2 -----
> line 3 -----
> ect ...
> in the up-right corner of the picture.
> What to do not to have these things in pictures ?
You can set the legend when plotting by enclosing the wanted text between
';'s in the plot style. For example:
plot(x,sin(x), "o;sin;", x, cos(x), "*;cos;")
To turn the texts off, just put an empty string between ;'s, like this:
plot(x,y, "-;;")
HTH,
Teemu
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- help, Barbara Zubik-Kowal, 2000/09/08
- Re: help, Etienne Grossmann, 2000/09/08
- help, Monte Bateman, 2000/09/12
- Re: help,
Teemu Ikonen <=