|
From: Matthias K. <kr...@co...> - 2011-04-12 21:32:30
|
Hi, I used newhistogram to place several groups into the same plot, but all bars that do not use 'title col' are offset to the left. See http://compeng.uni- frankfurt.de/~kretz/memio.pdf for the PDF and http://compeng.uni- frankfurt.de/~kretz/test.gnuplot for the source to generate it. The problematic code looks like this: plot newhistogram " \rload", \ '-' using 2:xtic(1) title columnheader(2), \ newhistogram " \rstore", \ '-' using 2:xtic(1) notitle, \ newhistogram " \rload \& store", \ '-' using 2:xtic(1) notitle If you change the 'notitle' statements to 'title col' the bars are placed correctly. Also note the use of " \r" in the newhistogram label. I added it because there is no padding between the xtic labels and the newhistogram label (they're even slightly overlapping). I'd be grateful for suggestions. Cheers, Matthias PS: I'm subscribed. -- Dipl.-Phys. Matthias Kretz http://compeng.uni-frankfurt.de/?mkretz SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc |
|
From: Thomas S. <t.s...@fz...> - 2011-04-13 07:39:57
|
for the 'notitle' sub-plots either skip the first line of data with plot ... using 2:xtic(1) every ::1 notitle ... or delete the first line from each of the corresponding data sets. Matthias Kretz-4 wrote: > > Hi, > > I used newhistogram to place several groups into the same plot, but all > bars > that do not use 'title col' are offset to the left. See > http://compeng.uni- > frankfurt.de/~kretz/memio.pdf for the PDF and http://compeng.uni- > frankfurt.de/~kretz/test.gnuplot for the source to generate it. > > The problematic code looks like this: > plot newhistogram " \rload", \ > '-' using 2:xtic(1) title columnheader(2), \ > newhistogram " \rstore", \ > '-' using 2:xtic(1) notitle, \ > newhistogram " \rload \& store", \ > '-' using 2:xtic(1) notitle > > If you change the 'notitle' statements to 'title col' the bars are placed > correctly. > > Also note the use of " \r" in the newhistogram label. I added it because > there > is no padding between the xtic labels and the newhistogram label (they're > even > slightly overlapping). > > I'd be grateful for suggestions. > > Cheers, > Matthias > > PS: I'm subscribed. > > -- > Dipl.-Phys. Matthias Kretz > http://compeng.uni-frankfurt.de/?mkretz > > SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc > > ------------------------------------------------------------------------------ > Forrester Wave Report - Recovery time is now measured in hours and minutes > not days. Key insights are discussed in the 2010 Forrester Wave Report as > part of an in-depth evaluation of disaster recovery service providers. > Forrester found the best-in-class provider in terms of services and > vision. > Read this report now! http://p.sf.net/sfu/ibm-webcastpromo > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/bar-placement-problem-with-newhistogram-tp31383081p31385555.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Matthias K. <kr...@co...> - 2011-04-14 11:05:56
|
Hi, thanks! Works great! Now the only remaining problem is the label added by newhistogram. It's crammed into the remaining bmargin and doesn't adjust bmargin, nor has proper padding to the xtics. Any ideas? On Wednesday 13 April 2011 09:39:50 Thomas Sefzick wrote: > for the 'notitle' sub-plots either skip the first line of data with > > plot ... using 2:xtic(1) every ::1 notitle ... > > or delete the first line from each of the corresponding data sets. > > Matthias Kretz-4 wrote: > > Hi, > > > > I used newhistogram to place several groups into the same plot, but all > > bars > > that do not use 'title col' are offset to the left. See > > http://compeng.uni- > > frankfurt.de/~kretz/memio.pdf for the PDF and http://compeng.uni- > > frankfurt.de/~kretz/test.gnuplot for the source to generate it. > > > > The problematic code looks like this: > > plot newhistogram " \rload", \ > > > > '-' using 2:xtic(1) title columnheader(2), \ > > newhistogram " \rstore", \ > > '-' using 2:xtic(1) notitle, \ > > newhistogram " \rload \& store", \ > > '-' using 2:xtic(1) notitle > > > > If you change the 'notitle' statements to 'title col' the bars are placed > > correctly. > > > > Also note the use of " \r" in the newhistogram label. I added it because > > there > > is no padding between the xtic labels and the newhistogram label (they're > > even > > slightly overlapping). > > > > I'd be grateful for suggestions. > > > > Cheers, > > > > Matthias > > > > PS: I'm subscribed. Regards, Matthias -- Dipl.-Phys. Matthias Kretz http://compeng.uni-frankfurt.de/?mkretz SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc |