Drawing two TVectors on same plot

Hi I am trying to draw to Tvectors on the same plot with:

TVectorD * a = new TVectorD(4);
TVectorD * b = new TVectorD(4);
for( Int_t i=0; i< 4; i++)
b(i)=( (Double_t) i ) / 3;


But I keep ending up with a plot with only one histogram;
Also once i get them on the same plot how do i change the color of the lines?

Thanks for the help


Why are you using the option “A” for the first plot ? Do you real want to remove the axis ?
Works fine.

TVectorD does not have the line attributes. To draw the two vector a and B I would recommend you to use TGraph which has all the graphics attributes.