summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a7262e)
raw | patch | inline | side by side (parent: 2a7262e)
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) |
doc/rrdgraph.pod | patch | blob | history | |
src/rrd_graph.c | patch | blob | history |
diff --git a/doc/rrdgraph.pod b/doc/rrdgraph.pod
index f84bb76162f2e23a51ec173ba35e11696ae186fa..9f0dcf40a690a9a8ecd954c4a551e0d9927557af 100644 (file)
--- a/doc/rrdgraph.pod
+++ b/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
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index d1f32ddcb650838f6022d6386d79edf81d496a0e..643abe4236a827eae37488263ac8d51e9a72c43e 100644 (file)
--- a/src/rrd_graph.c
+++ b/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,