[rrd-users] Re: v1.0.8 width affecting height scale?

Tobias Oetiker oetiker at ee.ethz.ch
Thu Jan 20 08:02:18 MET 2000


Yesterday you sent me mail regarding Re: [rrd-users] v1.0.8 width affecting...:

*> On Wed, 19 Jan 2000, Tobias Oetiker wrote:
*> 
*> > *> Is there any way I can have rrdtool not perform this relative scaling?  My
*> > *> original idea of the smaller graphs was to be able to put two graphs next
*> > *> to each other for a quick overview before the user scrolled down to the
*> > *> more detailed graphs.
*> > 
*> > you can not prevent the scaling, because there is no 'sane' way to do the
*> > drawing otherwhise ... I must have a 'point' to draw on the graph, so how do
*> > I find out where to put it. I look at the data points which fall into the
*> > range of time covered by the pixel in the graph and build the average of the
*> > values covered by the pixel and then draw the pixel ...
*> 
*> Okay, I can understand the scaling as far as the positioning of the
*> pixels, but what about the rendering of the legend for the Y axis?
*> 
*> Why couldn't a 100x200 graph and a 100x400 graph of an average value show
*> the same legend to indicate the same relative values when the same period
*> of time and the same data is involved?

hmmm ... lets try again :

100x400 the pixels at position 300 and 301 show the following 
data values 100 and 20... 

100x200 the pixel at position 150 shows the following data (100+20)/2 = 60

so while the first graph will show values between 0 and 100, the second one
will show values between 0 and 60 ... 

cheers
tobi

*> Maybe I need to re-read the docs on the data structure of the RRAs.
*> 
*> --                      _______________
*>  Chris Josephes      __/ MRNet/Onvoy   \
*>  chrisj at mr.net    __/   www.onvoy.com  /
*> \________________/
*> 
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users



More information about the rrd-users mailing list