Rotating TGraph2D

I was wondering how/if one can rotate a TGraph2D plot such that only two of the axis are showing. For example have the X and Y axis shown while only the contours of Z are visible or just get side view of X versus Z. I know this can be done manually after the script is run, but I would like to do it within the code.

Thanks,
Neil

   TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500);
   c1->SetTheta(...);
   c1->SetPhi(...);