Fork me on GitHub

Changeset 1197 in svn for trunk/examples


Ignore:
Timestamp:
Jul 9, 2013, 10:09:55 PM (11 years ago)
Author:
Pavel Demin
Message:

increase font size for performance plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/MemoryUsage.C

    r1194 r1197  
    1212
    1313TGraph grvsz, grrss;
     14TLegend legend(0.41, 0.58, 0.77, 0.67);
     15
     16TCanvas *canvas;
    1417
    1518//------------------------------------------------------------------------------
     
    7275    canvas = new TCanvas("c1", "c1", 800, 650);
    7376  }
    74   canvas->SetLogy(0);
     77  canvas->SetGrid();
    7578  canvas->SetHighLightColor(kExRootBackgroundColor);
    7679
     
    102105  grvsz.Draw("AL");
    103106  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();
    104115}
    105116
Note: See TracChangeset for help on using the changeset viewer.