I have an application that I have put together that uses a TGraph. I allocate arrays for the x and y in this 2 dimensional graph. The data come in realtime and per second I update the TGraph, using Draw(“LP”).
Well the TGraph behaves as it should by drawing all the points even
the ones not yet filled. Is there a way I can tell TGraph to draw a subset
of the points allocated to it?
Regards
Chris
Hi,
Does point number on your plots only increase
or you wish firstly draw 10 points, then only 5?
There is a thread on a similar issue in the roottalk mail list: http://root.cern.ch/root/roottalk/roottalk04/2547.html
mygraph.DrawGraph(n) creates a new graph thus it is significaly
slower than new TGraph::SetPoint() implementation.
Although a graph with external x-y arrays can be useful.