[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pslatex terminal output
From: |
Jonathan Stickel |
Subject: |
Re: pslatex terminal output |
Date: |
Tue, 20 Sep 2005 13:11:51 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050716) |
Quentin Spencer wrote:
Jonathan Stickel wrote:
Quentin Spencer wrote:
Pete Gustafson wrote:
As a secondary question, how do I get pslatex output
using the print() command? It doesn't seem to be an
option. I need pslatex in order to have mathematical
symbols in the legend and axis labels.
My preferred way of doing this is to use fig output and then convert
the xfig file to eps using fig2ps
(http://sourceforge.net/projects/fig2ps/). This is a really nice perl
script that converts to PS/PDF using LaTeX to do the typesetting on
all of the text, so you can put any equation you want in the figure.
It's available in Debian, and I'm in the process of trying to get it
into Fedora Extras.
Quentin
I would like to use the fig terminal and use fig2ps (actually I
suggested it on this list awhile ago), but there are no default circle
or filled symbols for data plots. I recently discovered it is
possible to get them using advanced gnuplot commands, but that is
cumbersome to use on a regular basis. Do you have a good resolution
for this issue?
No. I have typically just used line plots in most of my work lately, so
this hasn't been a problem for me. However, I have noticed this weakness
of the plot and print commands. What are the advanced gnuplot commands?
Maybe someone here can use them to improve plot and/or print.
The set-show/terminal/fig section of the gnuplot manual tells about
obtaining many types of symbols for the fig terminal. To get filled red
circles, I do:
gnuplot> set term fig color
gnuplot> set output "testplot.fig"
gnuplot> plot sin(x) with points pt 559 lt 5
gnuplot> set output
I haven't tested this in octave, but I'm sure it will work the same
(using __gnuplot_raw__ and __gnuplot_set__). Essentially, getting more
symbols requires a 2-3 character pointtype specification. Current
plot() in octave parses single characters only. One solution might be
to modify plot() (and print()?) to allow the use of predefined
"linestyles". For example,
octave> __gnuplot_set__ style line 1 pt 559 lt 5
octave> plot(x,y,'@s1')
where parsing within plot() would detect 's' and then take the following
character as a linestyle. I might be able to implement this myself if
others think this is a good way to do it.
Jonathan
-------------------------------------------------------------
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
-------------------------------------------------------------