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 Data and Parametric
gnuplot: can a function be plotted with vectors?
Tab completion not working correctly in gnuplot
gnuplot with lines is not working
Add guiding lines over pm3d map in Gnuplot
How to plot a smooth surface in GNUplot?
Two plots on the same graph
Plot contours from one graph into another in Gnuplot
gnuplot: silent error reading (non-standard form of) scientific format numbers
gnuplot plotting against time-difference
grid lines are changed in multiplot if lines styles of y column is changed
Gnuplot: How to make scatter plots with transparent points
Gnuplot - How do not plot a piece of line for non-contiguous date/time
GNUPLOT: stats gives wrong results on loop
How to plot 3d scalar field from a dataset using gnuplot
gnuplot - load script into history

Categories

HOME
angular
.htaccess
drawing
magento-1.9
reverse-geocoding
mongoose
wolfram-mathematica
javafx-2
login
google-cardboard
fluent-assertions
geometry
relation
libreoffice-base
j
accelerometer
spring-statemachine
konvajs
image-comparison
flip-flop
cdb
gnome
miktex
powerpoint-vba
endpoints-proto-datastore
ctype
remote-connections
pgadmin
spacing
android-ffmpeg
angular-daterangepicker
initializing
oracle-data-modeler
uisearchbar
lift
bspline
devexpress-wpf
getelementsbyclassname
rt
friend-function
object-oriented-analysis
opensmtpd
ngdoc
istanbul
apple-search-ads
greenlets
google-chartwrapper
android-image
strstream
nested-function
parrot
openoffice-writer
oslo
graphic-effects
inventory
rgraph
httpful
command-line-tool
busy-waiting
authentication-flows
openembedded
fswatch
drilldown
mongojs
worksite-sdk
mysql-num-rows
xcode-instruments
code-metrics
dav
controltemplate
complete.ly
pivotitem
topcoat
sencha-touch-2.2
inter-process-communicat
divshot
rs485
mathtype
set-theory
cgimagesource
wind-river-workbench
webarchive
pasteboard
windows-networking
snk
google-instant-previews
open-basedir
sqlmetal
task-tracking

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