From 311c0e71684462269afb15264b7134a0f16064bc Mon Sep 17 00:00:00 2001 From: Andrew Hannam Date: Thu, 13 Dec 2012 22:33:05 +1000 Subject: Add grids to graph demo and update graph arrows Add grid lines to graph demo. Update graph arrows to allow seperate control of positive and negative axis arrowheads. --- demos/modules/graph/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/modules') diff --git a/demos/modules/graph/main.c b/demos/modules/graph/main.c index 40267522..04d0b9b8 100644 --- a/demos/modules/graph/main.c +++ b/demos/modules/graph/main.c @@ -18,9 +18,9 @@ GGraphStyle GraphStyle1 = { { GGRAPH_LINE_NONE, 2, Gray }, // line { GGRAPH_LINE_SOLID, 0, White }, // x axis { GGRAPH_LINE_SOLID, 0, White }, // y axis - { GGRAPH_LINE_NONE, 0, White, 0 }, // x grid - { GGRAPH_LINE_NONE, 0, White, 0 }, // y grid - GWIN_GRAPH_STYLE_XAXIS_ARROWS|GWIN_GRAPH_STYLE_YAXIS_ARROWS // flags + { GGRAPH_LINE_DASH, 5, Gray, 50 }, // x grid + { GGRAPH_LINE_DOT, 7, Yellow, 50 }, // y grid + GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS // flags }; GGraphStyle GraphStyle2 = { @@ -28,9 +28,9 @@ GGraphStyle GraphStyle2 = { { GGRAPH_LINE_NONE, 2, Gray }, // line { GGRAPH_LINE_SOLID, 0, White }, // x axis { GGRAPH_LINE_SOLID, 0, White }, // y axis - { GGRAPH_LINE_NONE, 0, White, 0 }, // x grid - { GGRAPH_LINE_NONE, 0, White, 0 }, // y grid - GWIN_GRAPH_STYLE_XAXIS_ARROWS|GWIN_GRAPH_STYLE_YAXIS_ARROWS // flags + { GGRAPH_LINE_DASH, 5, Gray, 50 }, // x grid + { GGRAPH_LINE_DOT, 7, Yellow, 50 }, // y grid + GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS // flags }; int main(void) { -- cgit v1.2.3