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 132 25 5 7 123 26 5 3 134 20 6 8 55 23 5 12 156 23 5 12 117 22 9 12 58 24 16 5 89 23 2 12 1010 23 15 5 9
Code: Select all
set terminal epslatex 8set output 'histo.eps'set boxwidth 0.75 absoluteset style fill solid 1.00 border -1set style histogram rowstackedset style data histogramsset xtics 1000 nomirrorset ytics 100 nomirrorset mxtics 2set mytics 2set ytics 10set 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