For example if I would like a bar with color lt rgb "#0000EE" and fs
pattern 1; can it be done simultaneously in GNUplot? Please let me
know.
You can give an explicit fill style and color for each column of data:
set style data histogram
plot 'foo' using 2 lc rgb 'gold' fillstyle solid 1.0 noborder, \
'' using 4 lc rgb 'purple' fillstyle pattern 1
There is a minor bug in version 4.2 that makes the command sensitive to
the order of the plot options; you must specify the color first and
the fillstyle second.
--
Ethan A Merritt
Do you know by chance if using color and fs pattern 1 works in the old
version. I tried to do it and it doesn't work in my system. Do you
know why?
Thank You.
What is "the old version"?
And what terminal type are you using?
--
Ethan A Merritt
On the terminal type, I'm using--
set term postscript eps enhanced color solid font "Arial,14"
The version is 4.2.2...
When I use the 'plot foo.dat' using 2:xtic(1) lc rgb 'purple' fs
pattern 1' -- all i see is a bar with a purple line with no pattern.
Do you know why that would happen?
Thanks a lot for your help.
Aha. Let me guess.
You didn't actually print this file; you are viewing it in ghostview or gv.
Right?
There is nothing wrong with your gnuplot output, and if you send it to a
printer you will see purple pattern-fill.
The problem is a known bug in ghostscript/ghostview/gv.
It doesn't show pattern-fill unless you disable anti-aliasing.
This has been broken in ghostscript for several years, but no one seems
to care about fixing it.
http://bugs.ghostscript.com/show_bug.cgi?id=688588
--
Ethan A Merritt