I am trying to make a simple stacked histogram. I am having two problems:
1) The histogram bars are completely solid black, making it impossible to distinguish the stacked items.
2) The chart is offset from the axes.
I am using the working example provided by the folks at Code Alias. The link to their tutorial is here: http://www.codealias.info/technotes/gnu ... am_example
Their data file is as follows:
Code: Select all
1 23 2 9 13
2 25 5 7 12
3 26 5 3 13
4 20 6 8 5
5 23 5 12 15
6 23 5 12 11
7 22 9 12 5
8 24 16 5 8
9 23 2 12 10
10 23 15 5 9
Code: Select all
set terminal epslatex 8
set output 'histo.eps'
set boxwidth 0.75 absolute
set style fill solid 1.00 border -1
set style histogram rowstacked
set style data histograms
set xtics 1000 nomirror
set ytics 100 nomirror
set mxtics 2
set mytics 2
set ytics 10
set yrange [0:50]
set ylabel "Total time"
set xlabel "Session number"
plot 'data' using 3 t "Server", '' using 4 t "Client", '' using 5:xtic(1) t "Network"
When I plug this in and load the tex file I get this: You can easily see the two problems as compared to the example provided by the people at Code Alias, which I am including below. All the bars are black, and the text is offset from the graph. I am using Gnuplot version 4.4 patchlevel 0 for Microsoft Windows. Any help is much appreciated. Thank you,
Jason