I think he meant if you can define arrays dynamically like this:
Double_t *time = new Double_t [npoints];
Double_t *xpos = new Double_t [npoints];
And later use them with TGraph like this:
TGraph *x_vs_t = new TGraph( npoints , time , xpos );
I tried your suggestion for the STL vectors with this kind of dynamically defined array, but it didn’t work. I get no apparent errors (with either your syntax or mine) but my canvas is empty!..and I’ve checked my arrays contain the data I need.
I guess I can try using vectors instead, but they might be slower…