You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At 512 pixels width the graph looks jagged, and zooming reveals that it is drawn with 2 pixel resolution. Whereas at 600px wide, the graph seems relatively smooth.
The 288:3660 RRA has enough data for 300x288x3660 = 10 years (if I'm rounding 1 year = 366 days), so it should get picked, which would provide almost the full 3660 data points for plotting. The next RRA 576:5000, at 10y width, should have 366x10x86400/576/300 = 1830 data points so still enough to plot over 512px smoothly. The last RRA 2016:5228 has 366x10x86400/2016/300 = 522 points for the period, still enough.
The text was updated successfully, but these errors were encountered:
light
changed the title
Low data point resolution depending on graph width
Low data plotting resolution depending on graph width
Apr 29, 2024
Bug description
At some graph widths, data gets displayed with low resolution, even though underlying RRA has enough data points.
To Reproduce
I'm using rrdtool python from Debian testing :
rrdtool graph test1.png -w 512 -h 200 --start -10y DEF:x=test.rrd:x:AVERAGE AREA:x#00FF00:x
rrdtool graph test2.png -w 600 -h 200 --start -10y DEF:x=test.rrd:x:AVERAGE AREA:x#00FF00:x
At 512 pixels width the graph looks jagged, and zooming reveals that it is drawn with 2 pixel resolution. Whereas at 600px wide, the graph seems relatively smooth.
The 288:3660 RRA has enough data for 300x288x3660 = 10 years (if I'm rounding 1 year = 366 days), so it should get picked, which would provide almost the full 3660 data points for plotting. The next RRA 576:5000, at 10y width, should have 366x10x86400/576/300 = 1830 data points so still enough to plot over 512px smoothly. The last RRA 2016:5228 has 366x10x86400/2016/300 = 522 points for the period, still enough.
The text was updated successfully, but these errors were encountered: