[root] Repository:
ViewVC logotype

Revision 40956


Jump to revision: Previous Next
Author: couet
Date: Tue Sep 20 15:50:44 2011 UTC (3 years, 4 months ago)
Log Message:
The following macro did not show the x-axis in TimeDisplay mode.The 
mg->GetYaxis()->UnZoom(); command erased the Time attribute of the axis.
 
{ 
TMultiGraph* mg = new TMultiGraph; 
TGraph* g = new TGraph; 
for (int i = 0; i < 100; i++) g->SetPoint(i, 1289420808+i, i+2); 
mg->Add(g, "P"); 
mg->Draw("AP"); 
mg->GetXaxis()->SetTimeDisplay(1); 
mg->GetYaxis()->UnZoom(); 
gPad->Modified(); 
gPad->Update(); 
}

Changed paths:

Path Details
Directorytrunk/hist/hist/src/TMultiGraph.cxx modified , text changed

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9