[rrd-developers] [patch] improvements to and experiments with dashing
speck at ruc.dk
Mon Apr 8 00:04:23 MEST 2002
I've improved the handling of dashes in the SVG code and added it to
EPS. Then I have made graphs having dashed gridlines, and my observation
from that is:
We might have to let rrd_graph specify the orgin of the dash so we can
fine tune where the gridlines start. I have extended the major vertical
lines one pixel down (so it is 3 below) as pixel 2 is an off-pixel in my
graphs, and thus it starts at pixel 1 just like the grey line.
In the svg/eps code I currently have the orgin at 0,0 so that two dashed
lines (with same on/off values) have their pattern aligned no matter
where they start. It looked weird having the major and minor grid lines
being slightly out of sync due to different starting positions.
2 patches for current cvs:
1) Orgin for dashes in svg code. Support for dash in eps.
Patches only svg/eps code in src/rrd_gfx.c
2) Modification of rrd_graph so it uses dashes for gridlines much like
Avoids drawing minor vertical gridlines where a major gridline is to
avoid artifacts from having the grey line beneath the red one.
Patches src/rrd_graph.c and src/rrd_graph.h
Partial screendump of svg, zoomed to 800%:
- Peter Speck
If PacMan had affected us as kids
we'd be running around in dark rooms,
munching pills and listening to electronic music
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
More information about the rrd-developers