I am using the following code to initialize a graph window:
static GGraphStyle graphStyle = {
{GGRAPH_POINT_DOT, 0, Yellow}, {GGRAPH_LINE_NONE, 2, Gray},
{GGRAPH_LINE_SOLID, 0, White}, {GGRAPH_LINE_SOLID, 0, White},
{GGRAPH_LINE_DASH, 5, Gray, 10}, {GGRAPH_LINE_DOT, 7, Yellow, 19},
GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS // Flags
};
...
GWindowInit winInit;
gwinClearInit(&winInit);
winInit.show = gTrue;
winInit.x = winInit.y = 0;
winInit.width = gdispGetWidth();
winInit.height = 130;
temperatureGraph = gwinGraphCreate(&graphObj, &winInit);
gwinGraphSetOrigin(temperatureGraph, 0, 0);
gwinGraphSetStyle(temperatureGraph, &graphStyle);
gwinGraphDrawAxis(temperatureGraph);
Upon startup, I can see the graph but it quickly disappears. I have another label I constantly update and that works just fine. Any ideas as to what may be wrong? I could upload a video if that is allowed, but basically this is what happens:
Screen starts up
Label is shown on screen
Graph is shown, quickly disappears
Label proceeds to be updated.
I thought it could be the label updating procedure and I commented it out but the graph still disappeared.