Ahh, that's right. Each DEF can specify a step value... I will not override the step size in my graphs, so I guess I can do something like:<br><br>CDEF:cur_time=ds1,POP,TIME<br>CDEF:step=cur_time,PREV(cur_time),-<br>VDEF:last_step=step,LAST<br>
PRINT:last_step:%lf<br><br>And parse the step size from print[0].<br><br>/Fredrik<br><br><div class="gmail_quote">On Fri, Oct 15, 2010 at 11:31, Tobias Oetiker <span dir="ltr"><<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Hi Frederik,<br>
<br>
Today Fredrik Kers wrote:<br>
<br>
</div><div class="im">> Thanks for the quick reply!<br>
><br>
> I want to display the resolution of the graphed data to the user. Since the<br>
> data is resampled (by fetch?) I don't know the resolution. According to the<br>
> fetch documentation "the fetch function is normally used internally by the<br>
> graph function to get data from RRDs", so i guess the "step size" or<br>
> resolution is known to the graph(v) function but not returned.<br>
<br>
</div>the resolution is known to rrd_graph but as I said, each DEF could<br>
return a different resolution ...<br>
<br>
cheers<br>
tobi<br>
<div class="im"><br>
> /Fredrik<br>
><br>
> On Fri, Oct 15, 2010 at 09:23, Tobias Oetiker <<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>> wrote:<br>
><br>
> > Hi Frederik,<br>
> ><br>
> > Today Fredrik Kers wrote:<br>
> ><br>
> > > Hi!<br>
> > ><br>
> > > I'm using the python rrdtool bindings to create a interactive view of rrd<br>
> > > data where you can zoom and pan in the graph. Is there a way to get the<br>
> > step<br>
> > > size of the graph created by rrdtool.graphv, like you get from<br>
> > > rrdtool.fetch?<br>
> ><br>
> > the step is not necessarily unifor as far as the input data is<br>
> > concerned ... the data gets re-sampled inside rrdgraph prior to<br>
> > drawing ...<br>
> ><br>
> > what problem are you tring to solve ?<br>
> ><br>
> > cheers<br>
> > tobi<br>
> ><br>
> ><br>
> > > /Fredrik<br>
> > ><br>
> ><br>
> > --<br>
> > Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
> > <a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a> ++41 62 775 9902 / sb: -9900<br>
> ><br>
><br>
<br>
</div>--<br>
<div><div></div><div class="h5">Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
<a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a> ++41 62 775 9902 / sb: -9900<br>
</div></div></blockquote></div><br>