gnuplot


Fill bars in gnuplot with dots or other patterns


I'm drawing some bar charts using gnuplot (histogram). I need different and various patterns to fill the bars. Using "fs pattern XX", I can use some patterns, but they are all some lines.
I need the border to be solid line (linetype 1), and the bar be filled by dots. If I change the linetype of pattern, then the border is changed as well. I want to keep the border solid.
Any idea?
I found one terminal which supports dotted patterns: the 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) with boxes lt -1 lw 2 lc rgb '#990000' fillstyle pattern 8
set output
system('pdflatex dot-pattern.tex')
With this you could also use custom fill patterns by overwriting a predefined pattern:
set terminal lua tikz standalone header '\tikzset{gp pattern 8/.style={pattern=mypatterh}}'
and you must define a custom pattern, like shown in
Custom and built in TikZ fill patterns.
Using black borders and colored fill pattern is possible with
plot '+' using 1:($0+1) with boxes lc rgb '#990000' fillstyle pattern 8 noborder,\
'+' using 1:($0+1) with boxes lt -1 lw 2

Related Links

GNUplot concatenate 2 macros in an xlabel
Determine min and max in gnuplot
Plot cyclic sum of some row data
How to count the number of indices in a Gnuplot input file
GNU Plot how to plot histogram in timeseries
Create groups of dots histogram with gnuplot
Gnuplot: Missing values on second y-axis
Gnuplot fat lines overlap with axis
Using relative paths in gnuplot plot files
increment of ytics in gnuplot
gnuplot: Plot and fit 2d function with two variables
Gnuplot: Plotting a path over a surface
How to mark 90 percentile in gnuplot
Is there a way to have gnuplot use xaxis time data, but skip certain intervals (e.g. non-trading hours)
How can I make gnuplot show coordinates of a plotted function which have same x value as the mouse pointer?
gnuplot: xdata time and boxes

Categories

HOME
jsoup
g2o
freeswitch
pstricks
memcached
rectangles
css-modules
playframework-2.5
vbulletin
docbook
corba
double
salt-stack
video-processing
sdl
beatbox
pad
build-automation
google-app-invites
moshi
probability-theory
xbuild
google-surveys
endpoints-proto-datastore
ply
hibernate-criteria
z80
footable
chinese-locale
spring-4
modeling
multiple-domains
aspose-cells
sharethis
uwamp
tornado-motor
fixtures
cassandra-3.0
thinktecture-ident-model
ngrx-effects
gobject
nonetype
nerdtree
protactor
ansible-vault
maximo-anywhere
keyword-search
roc
tableau-public
friend-function
javac
wamp-protocol
jquery-ui-tabs
android-build
bubble-sort
libtool
powerview
erwin
qt4.8
vibration
ucp
classname
divider
singularitygs
wx
tess-two
bitarray
spatialite
angularjs-ng-options
sql-agent-job
acronym
jaxb2-maven-plugin
android-bundle
t4-toolbox
determinants
treenode
jquery-dropkick
srv
cleartool
searchqueryset
opencv-features2d
appcompat-v7-r22.1
tracker
member
pixate
wxgrid
rails-i18n
socketrocket
fluent-security
where-in
inner-classes
emacs-semantic
system.speech.recognition
angularjs-e2e
vp8
iphone-4
nsinteger
in-app
layar
juggernaut
eda
context-sensitive-help
urldecode
codehighlighter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App