|
From: Thomas S. <t.s...@fz...> - 2010-09-28 14:23:57
|
Damian Philipp <damian.philipp <at> ipvs.uni-stuttgart.de> writes: > > Hello Gnuplot-Experts, > > I am having trouble creating a clustered histogram. See the image at > http://img543.imageshack.us/img543/10/plotq.png for an example. > > As you can see, for the first batch of bars (named "0") the xtic-labels > are aligned with the bars. In all the other batches ("10", "20" and > "30") the xtic-labels are no longer aligned with the bars. This seems to > be independent of the terminal type (I tried png, ps, windows and wxt so > far). I tried using Gnuplot 4.2 from Debian Lenny as well as WGnuplot > 4.4 on Windows 7. I'm attaching the minimal plot- and data-file used to > create the above image to this e-mail. > > What is the correct magic to get the xtics aligned with the bars? > > Regards, > Damian Philipp > in the 1st histogram you use the 1st line in the datafile for titles. all subsequent histograms use the 1st line as data, that's why the bars are off by one. in your plot command, in front of every 'notitle' add 'every ::1' to skip the 1st line. |