|
From: Thomas S. <t.s...@fz...> - 2009-10-05 07:25:47
|
in histogram mode data belonging together are grouped and each group gets one label. if you specify several 'xtic's the last one overwrites the earlier one. the label should appear in the middle (which it currently only does for an odd gap size, e.g.: set style histogram gap 1) air0day wrote: > > Hey folks, > > Pretty new to gnuplot and I've managed to get my graph to look ALMOST > exactly how I want. I have a histogram where I'm comparing two data sets > side by side and I want each bar to have its own label, but instead each > pair is getting a single label (the second one of the pair). Any way to > stop this? > > This is my .gnu file: > > set terminal png > set output 'lcom_projects.png' > set style data histograms > plot 'data.dat' every 1::0::3 using 2:xtic(1) title 'TDD' fs solid 0.7, \ > 'data.dat' every 1::4::7 using 2:xtic(1) title 'Non-TDD' fs pattern 1 > > > And this is my data: > > JUnit 0.129 > HTMLParser 0.265 > Fitnesse 0.241 > Hudson 0.149 > Jericho 0.239 > JTidy 0.112 > JSPWiki 0.22 > XWiki 0.179 > > > This is the result: > http://www.nabble.com/file/p25744498/lcom_projects.png lcom_projects.png > > > If you look, you can see that each "pair" is labeled Jericho, JTidy, > JSPWiki, and XWiki, even though the correct bar (the red one) is being > shown for the other half of the data. I just can't make the labels appear > side by side. > > Any help would be greatly appreciated. > > -- View this message in context: http://www.nabble.com/Histogram-combining-x-axis-labels-tp25744498p25746201.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |