Drawing a THStack of TH2 histograms with a specified view angle/rotation

When drawing a THStack of 2d histograms in the TBrowser the 3D image can be rotated with the mouse. When Drawing from a macro the plot defaults to a specific view, is there a way to specify a desired rotation when drawing? It would speed up making images and getting consistent images between input files.

You can use SetPhi and SetTheta on the pad (e.g. after drawing, add gPad->SetPhi(myphiangle);…)

1 Like

Great. Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.