using gnuplot I try to plot data from a file with points such us squares
or circles and I would like to achieve a certain fill color, let's say
red, but a different marker edge color, say black.
As terminal I use postscript eps enhanced color.
Do you have any hints?
Best Regards,
Henning
Gnuplot does not provide any standard point types that work like that.
But you can define your own by providing a customized prolog file.
That is to say, the point types are defined in the file prologue.ps,
which is included at the top of each *.ps or *.eps file produced by
gnuplot. You can edit your local copy of this file to provide
different or additional point types. See, for example, the suggestions
here
http://sourceforge.net/tracker/index.php?func=detail&aid=1958517&group_id=2055&atid=352055
>Do you have any hints?
>
>Best Regards,
>
>Henning
--
Ethan A Merritt
mer...@chauvet.bmsc.washington.edu schrieb:
> That is to say, the point types are defined in the file prologue.ps,
> which is included at the top of each *.ps or *.eps file produced by
> gnuplot. You can edit your local copy of this file to provide
> different or additional point types. See, for example, the suggestions
> here [link]
Thank you, I downloaded the prologue file and saved it in my user
directory and it seems to work. However I have no idea how I can set the
colors of the point edge (usually this would be black) and the marker
inner area (any color).
My command file looks like this:
set loadpath "C:/Documents and Settings/All Users/Application
Data/gnuplot/bin/share/PostScript"
set terminal postscript eps enhanced color "Helvetica" 21
set output "eg1.eps"
plot 'MassFraction1Experimental.txt' with points lt 1 pt 16
Any help in defining the approriate colors is appreciated!
Best regards
Henning
The fill color is just whatever the current color is. Same as any other
line or point plot. This particular prologue file defines point types
18-24 as filled shapes with a black border. There is no provision for
a border color other than black.
E.g. plot with blue circles with a black border:
plot 'foo' with points pointtype 18 lc rgb "blue"
If you don't specify colors explicitly, you'll get the usual
red/gree/blue/magenta/cyan/... sequence for successive plots.
>
>My command file looks like this:
>
>set loadpath "C:/Documents and Settings/All Users/Application
>Data/gnuplot/bin/share/PostScript"
>set terminal postscript eps enhanced color "Helvetica" 21
>set output "eg1.eps"
>
>plot 'MassFraction1Experimental.txt' with points lt 1 pt 16
>
>Any help in defining the approriate colors is appreciated!
>
>
>Best regards
> Henning
--
Ethan A Merritt
mer...@chauvet.bmsc.washington.edu schrieb:
> The fill color is just whatever the current color is. Same as any other
> line or point plot. This particular prologue file defines point types
> 18-24 as filled shapes with a black border. There is no provision for
> a border color other than black.
>
> E.g. plot with blue circles with a black border:
>
> plot 'foo' with points pointtype 18 lc rgb "blue"
This produces here (1) just blue circles without any black.
I tried both prologue files that can be found here (2) with the same
result. The `normal' color is black, e.g. all other lines and points are
black, except `pointtype 18 lc rgb "blue"' is just blue (no black).
I have no idea :-(
Best regards,
Henning
(1) gnuplot 4.2 patchlevel 3, Win XP
(2) http://tinyurl.com/68cafn
Please confirm by inspection of the PostScript file that the
substitute prolog was really included in it. It is possible that
your copy of gnuplot was built with the prolog information stored
as a text block in the executable itself. I don't recommend that
configuration option, but some people use it because it reduces the
number of files required for installation.
>I have no idea :-(
>
>
>Best regards,
>
>Henning
>
>(1) gnuplot 4.2 patchlevel 3, Win XP
>(2) http://tinyurl.com/68cafn
--
Ethan A Merritt
Ethan Merritt schrieb:
> Please confirm by inspection of the PostScript file that the
> substitute prolog was really included in it.
I prepared a simple file like this
# -----------
reset
set loadpath "<path to prologue.ps>" # comment/uncomment this line
set terminal postscript color
set output 'plot.eps'
plot sin(x) with points pointtype 18, sin(x)+1 with points pointtype 20
close output
# -----------
Both plot.eps with loadpath and without loadpath looks identically. Even
when I set the loadpath to nonsens, like
set loadpath "abcdefg"
gnuplot processes the commands and prepares a plot! I would have
expectet an error or a warning.
> It is possible that
> your copy of gnuplot was built with the prolog information stored
> as a text block in the executable itself. I don't recommend that
> configuration option, but some people use it because it reduces the
> number of files required for installation.
I just choosed the binary for win 32 from the official download page
(IIRC). Nothing special there ...
Do I have to compile gnuplot by myself? I'm afraid I can't do that; I'm
not an expert :-(
Any suggestion? Thank You so fare!
Best Regards
Henning