Hi,
I’m display a TGeoVolume defined within a TGeoManager, it displays great but I’d like to automatically show the axis. I’m aware of right clicking the canvas and selecting the option, but I am trying to create several nice animated gifs. Thus far I’ve tried creating my own TView3D, and enabling ‘ShowAxis()’ but this has no effect, I’m not sure if declaring TView3D is doing much.
The canvas is divided into the volume display and an analysis plot,
[...]
TGeoVolume *top = geom->MakeBox("TOP", Vacuum, worldx,worldy,worldz);
[...]
static TCanvas *e3 = new TCanvas("e3", "result", 1200, 600);
TH2F *obs_result = new TH2F("obs_result", "Solid Angle Result", 300, 0, 1, 300, 0, 1);
TGraph *obs_graph = new TGraph();
e3->Divide(2);
e3->cd(1);
TView3D *view = new TView3D();
view->SetRange(-100,-100,-100,100,100,100);
view->ShowAxis();
top->Draw();
e3->cd(2);
gPad->SetLogz();
gStyle->SetMarkerStyle(kFullTriangleUp);
gStyle->SetMarkerColor(2);
obs_result->Draw("colz");
obs_graph->Draw("p same");
e3->cd(1);
[...] <-- Analysis Code omitted
e3->GetPad(1)->Modified();
e3->GetPad(1)->Update();
e3->GetPad(2)->Modified();
e3->GetPad(2)->Update();
Am I using TView3D inside the canvas subpad correctly? Changing the settings doesn’t affect the image, it seems to be using some default TView3D that is called when executing top->Draw();
Thanks for any help.