[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    Re: [Gnuplot-info] Histograms not centered at x-axis
From:       "Mauricio Galo" <galo () fct ! unesp ! br>
Date:       2012-05-21 13:40:28
Message-ID: fae3c52f45f7ddecaa69c037a68ce986.squirrel () pac ! fct ! unesp ! br
[Download RAW message or body]

Hi,

Some examples of histogram is available on
http://www2.fct.unesp.br/docentes/carto/galo/web/gnuplot/gnu_exemplos5.htm

Regards

Mauricio Galo

>
> Hi,
>
> I want to plot a histogram in using the standard histogram style.
> However, the clustered bars are not centered about the corresponding label
> at the x-axis.
>
> This is a sample code to show how I want to use it:
>
> reset
> set style data histograms
> set style histogram cluster
> plot '-' u 1
> 10
> e
>
> If I got it right, the result should be a single bar of height 10, centered
> about 0 at the x-axis.
> Yet the bar is not centered, but its left border is placed at 0:
>
> http://old.nabble.com/file/p33870960/histogram.png
>
> So it is 0.5 * boxwidth too far to the right. If I include a second data
> line, it is the same: the xtic should be exactly between the two bars, yet
> it appears at the center of bar 1, so again the bars are 0.5 * boxwidth too
> far to the right. This is always the case, no matter how many bars are
> plotted.
>
> Am I missing any option to get the histogram clusters centered? Or is there
> a way to "move" the bars by 0.5 * boxwidth to the left?
>
> By the way, I'm using Version 4.4 patchlevel 2 on a Fedora system.
>
> Thanks for any hint!
>
> Andreas
> --
> View this message in context:
> http://old.nabble.com/Histograms-not-centered-at-x-axis-tp33870960p33870960.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> gnuplot-info mailing list
> gnuplot-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gnuplot-info mailing list
gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic