summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 19af461)
raw | patch | inline | side by side (parent: 19af461)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 27 Oct 2009 13:13:37 +0000 (13:13 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 27 Oct 2009 13:13:37 +0000 (13:13 +0000) |
program/doc/rrdgraph.pod | patch | blob | history | |
program/src/rrd_graph.c | patch | blob | history |
index f84bb76162f2e23a51ec173ba35e11696ae186fa..9f0dcf40a690a9a8ecd954c4a551e0d9927557af 100644 (file)
--- a/program/doc/rrdgraph.pod
+++ b/program/doc/rrdgraph.pod
A green arrow is made by: C<--color ARROW#00FF00>
+[B<--grid-dash> I<on>B<:>I<off>]
+
+by default the grid is drawn in a 1 on, 1 off pattern. With this option you can set this yourself
+
+ --grid-dash 1:3 for a dot grid
+
+ --grid-dash 1:0 for uninterrupted grid lines
+
[B<--border> I<width>]]
Width in pixels for the 3d border drawn around the image. Default 2, 0
index d1f32ddcb650838f6022d6386d79edf81d496a0e..643abe4236a827eae37488263ac8d51e9a72c43e 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
{ "legend-position", required_argument, 0, 1005},
{ "legend-direction", required_argument, 0, 1006},
{ "border", required_argument, 0, 1007},
+ { "grid-dash", required_argument, 0, 1008},
{ 0, 0, 0, 0}
};
/* *INDENT-ON* */
case 1007:
im->draw_3d_border = atoi(optarg);
break;
+ case 1008: /* grid-dash */
+ if(sscanf(optarg,
+ "%lf:%lf",
+ &im->grid_dash_on,
+ &im->grid_dash_off) != 2) {
+ rrd_set_error("expected grid-dash format float:float");
+ return;
+ }
+ break;
case 1002: /* right y axis */
if(sscanf(optarg,