Using AddData in a bubble plot
Posted: Thu Aug 26, 2010 11:20 am
I have an application that draws a bubble plot in real time, ie single values are plotted as they are generated by the application using the following commands:
ret = DPlot_AddData(graph_number, %DATA_XYXY, 1, 1, x, y)
ret = DPlot_AddData(graph_number, %DATA_XYXY, 1, 2, x, z)
This works fine, except that it is incredibly slow. The reason seems to be that adding each new point forces the whole graph to be re-drawn (with a lot of flickering).
When setting up the graph, I made sure that it was manually scaled with the ret = DPlot_command(graph_number,"[ManualScale(..etc...)]" command. This presumably stays active during later data additions. I have also tried:
ret = DPlot_command(graph_number, "[MenuUpdates(0)]")
but no effect. Is there any way to stop the re-drawing process when adding data for this graph type, or am I doing something wrong?
Thanks
Peter
ret = DPlot_AddData(graph_number, %DATA_XYXY, 1, 1, x, y)
ret = DPlot_AddData(graph_number, %DATA_XYXY, 1, 2, x, z)
This works fine, except that it is incredibly slow. The reason seems to be that adding each new point forces the whole graph to be re-drawn (with a lot of flickering).
When setting up the graph, I made sure that it was manually scaled with the ret = DPlot_command(graph_number,"[ManualScale(..etc...)]" command. This presumably stays active during later data additions. I have also tried:
ret = DPlot_command(graph_number, "[MenuUpdates(0)]")
but no effect. Is there any way to stop the re-drawing process when adding data for this graph type, or am I doing something wrong?
Thanks
Peter