Thanks!
Dr. Greg Severn
Dept. of Physics/Univ. of San Diego/5998 Alcala Park/92110/CA/USA/&.
619 260 6845/619 260 2303fx
gr...@gsevern.acusd.edu
Greg,
if you use postscript terminal for output then adding
one line to your gnuplot script you may replace say crosses (pt 2)
with circles:
set term postscript
set output 'tmp.ps'
plot 'stuff.dat' with points pt 2 ps 5
!sed 's/Crs$/Circle/g' tmp.ps > stuff.ps
sed looks for any occurrence of "Crs" (cross) at the end of line
(as in the prolog of postscript file where "Crs" is defined it is
not at the end of line) to replace it with "Circle".
The result is in 'stuff.ps'.
Dmitri Volfson
Greg,
sorry, in previous reply I complicated matters :).
postscript term itself offers circles. it is pt 6.
you may want to use command 'test' to check with
your terminal.
Dmitri Volfson
| Hi!
| I'm running Linux 6.0, and the version of gnuplot (Linux version
| 3.7, patchlevel 0.2) that I have seems *not* to have open circles for
| point type. I've tried pt 1-6 get boxes, triangles, crosses and
| so on, but no circles. Can anyone tell me how to plot open and
| closed circles, using for example
| > plot 'stuff.dat' with points pt ? ps 5
it's depend on what kind of terminal do you set.
when you used postscript terminal, you can
use point 31 (black circle) or 65, 71 (white)
Complete 75 point types for postscript terminal
can be found in the /doc/ps subdirectory of the
gnuplot distribution. You can compile the
"ps_symbols.gpi" with gnuplot.
I've already compiled this file; the gif image
be seen through my address:
http://warmada.dhs.org/Graphics/gnuplot/ps_symbols.html
When you want to set in latex terminal,
the close circle are the number from 10 to 12
Regards,
I Wayan Warmada
You can see avilable point types with X11 terminal just typing
in gnuplot prompt;
gnuplot> test
Sorry, no open circle is supported with X11 termnal.
But you can use open circle with PostScript (same with Tgif) terminal.
If you execute AWK script following below, you can view point types
in PS (or Tgif) using GV.
$ awk -f marks.awk
$ gv marks.ps
Good luck!
### marks.awk ########################################################
BEGIN{
GNUPLOT = "gnuplot -persist"
printf "set terminal postscript portrait\n" | GNUPLOT
printf "set output 'marks.ps'\n" | GNUPLOT
printf "set samples 2; set nokey\n" | GNUPLOT
printf "set noborder; set nozeroaxis\n" | GNUPLOT
printf "set noxtics; set noytics\n" | GNUPLOT
printf "set xlabel ''; set ylabel ''\n" | GNUPLOT
printf "set pointsize 2; set parametric \n" | GNUPLOT
printf "set xrange[0:1]; set yrange[0:1]\n"| GNUPLOT
printf "set label 'Point Types in Gnuplot for PS & Tgif' \
at 0.05,0.98 font \"Helvetica,24\" \n"| GNUPLOT
for (j=0; j<=10; j++){
for (i=0; i<8; i++){
printf "set label '%d' at graph %f, %f \n", 8*j+i, 0.08+i*0.12, \
0.90-0.08*j | GNUPLOT
}
}
printf "plot " | GNUPLOT
for (j=0; j<=10; j++){
for (i=0; i<8; i++){
printf "%f, %f w p 0 %d, ", 0.05+i*0.12, 0.90-0.08*j, 8*j+i | GNUPLOT
}
}
printf "0,0 \n" | GNUPLOT
}
#########################################################################
Namio MATUDA <mat...@film.s.dendai.ac.jp>