Changeset 1197 in svn
- Timestamp:
- Jul 9, 2013, 10:09:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/MemoryUsage.C
r1194 r1197 12 12 13 13 TGraph grvsz, grrss; 14 TLegend legend(0.41, 0.58, 0.77, 0.67); 15 16 TCanvas *canvas; 14 17 15 18 //------------------------------------------------------------------------------ … … 72 75 canvas = new TCanvas("c1", "c1", 800, 650); 73 76 } 74 canvas->Set Logy(0);77 canvas->SetGrid(); 75 78 canvas->SetHighLightColor(kExRootBackgroundColor); 76 79 … … 102 105 grvsz.Draw("AL"); 103 106 grrss.Draw("L"); 107 108 legend.SetTextSize(kExRootFontSize); 109 legend.SetTextFont(kExRootFont); 110 legend.SetFillColor(kExRootBackgroundColor); 111 legend.SetBorderSize(0); 112 legend.AddEntry(&grvsz, "virtual memory size", "l"); 113 legend.AddEntry(&grrss, "resident set size", "l"); 114 legend.Draw(); 104 115 } 105 116
Note:
See TracChangeset
for help on using the changeset viewer.