Fill bars in gnuplot with dots or other patterns -
i'm drawing bar charts using gnuplot (histogram). need different , various patterns fill bars. using "fs pattern xx", can use patterns, lines.
i need border solid line (linetype 1), , bar filled dots. if change linetype of pattern, border changed well. want keep border solid.
any idea?
i found 1 terminal supports dotted patterns: lua tikz
terminal:
set terminal lua tikz standalone set output 'dot-pattern.tex' set boxwidth 0.8 relative set samples 10 unset key set yrange [0:11] plot '+' using 1:($0+1) boxes lt -1 lw 2 lc rgb '#990000' fillstyle pattern 8 set output system('pdflatex dot-pattern.tex')
with use custom fill patterns overwriting predefined pattern:
set terminal lua tikz standalone header '\tikzset{gp pattern 8/.style={pattern=mypatterh}}'
and must define custom pattern, shown in custom , built in tikz fill patterns.
using black borders , colored fill pattern possible with
plot '+' using 1:($0+1) boxes lc rgb '#990000' fillstyle pattern 8 noborder,\ '+' using 1:($0+1) boxes lt -1 lw 2
Comments
Post a Comment