Help with vectors


I some help with vectors. I have a bunch of values and a bunch of other values corresponding to the first bunch. Let’s say I have an array
v1[0]=a, v1[1]=b,v1[2]=c and another array
v2[0]=k, v2[1]=l, v2[2]=m
(I call them vectors)

I would like to make a plot v1 vs. v2, where “a” corresponds to “k”, “b” to “l”, “c” to “m”, etc…

Could you tell me, please, how to do it?


Simply use TGraph. See example in tutorials graph.C, gerrors2.C, etc