|
From: Damian P. <dam...@gm...> - 2009-09-16 10:37:35
|
Hello, I am having a little trouble placing with clustered histograms. I am graphing some simulation data (see http://www.delta-phi.net/images/dropRatio.png for my current image). First, I'm only using clustered histograms so I can give a label to a group of values (Simulation Runs using a similar parameter set). So if there is a better way to achieve this, I'd be happy to stop using clustered histograms. In my graph the labels for the clusters are placed within the graph, rather than on the outside as seen in Example 7 and 8 at http://gnuplot.sourceforge.net/demo_4.3/histograms.html Is there any way to force Gnuplot to put the labels on the outside? The other issue i'm having is with the legend. As I'm only partitioning one dataset into clusters, I want to use the same color everywhere - setting the line type solved that. I then got a legend for every single cluster. Turning off legend generation for all but one cluster solved that. But as you can see from the image, something is still wrong with the legend: It seems as if there were four additional invisible entries. Apart from looking really stupid this prevents me from having the keys displayed horizontally. This is the script I'm using: set style data histograms set style histogram rowstacked set style fill solid 1.0 border -1 set key out horiz right bottom set key noinvert box unset xtics set grid set ylabel "Drop Ratio" set yrange [0:1] set ytics 0.1 plot [x=-1:293] \ newhistogram "AODV, 30" lt 1, 'drop-AODV-30.data' using 4 t col, '' using 1 t col, '' using 2 t col, '' using 3 t col, \ newhistogram "AODV, 50" lt 1, 'drop-AODV-50.data' using 4 notitle, '' using 1 notitle, '' using 2 notitle, '' using 3 notitle, \ newhistogram "AODV, 100" lt 1, 'drop-AODV-100.data' using 4 notitle, '' using 1 notitle, '' using 2 notitle, '' using 3 notitle, \ newhistogram "OLSR, 30" lt 1, 'drop-OLSR-30.data' using 4 notitle, '' using 1 notitle, '' using 2 notitle, '' using 3 notitle, \ newhistogram "OLSR, 50" lt 1, 'drop-OLSR-50.data' using 4 notitle, '' using 1 notitle, '' using 2 notitle, '' using 3 notitle, \ newhistogram "OLSR, 100" lt 1, 'drop-OLSR-100.data' using 4 notitle, '' using 1 notitle, '' using 2 notitle, '' using 3 notitle set terminal postscript enhanced color set output 'dropRatio.ps' replot Thanks in advance for any help! Regards, Damian Philipp |