Jump to content

crazybolillo

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I did some more testing. Creating the label does seem to interfere with the graph, however it seems the only thing that happens is the axis disappears, the graph is still there as I can still draw points and they are displayed on screen. It seems as if the axis disappear once the initialization function exits. If I redraw the axis in other parts of the code, they stay on screen. Weird but I guess its solved.
  2. Thanks. I tried it and it seems that the label does interfere with the graph. I think it may have to do with letting UGFX auto calculate the labels height. Removing the label does let the graph render properly.
  3. 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.
×
×
  • Create New...