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++)
{
a(i)=i;
b(i)=( (Double_t) i ) / 3;
}

a->Draw(“A”);
b->Draw(“SAME”);

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

Alex

Why are you using the option “A” for the first plot ? Do you real want to remove the axis ?
a->Draw("");
b->Draw(“SAME”);
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.