Fork me on GitHub

Changeset a9d423d in git for examples/MemoryUsage.C


Ignore:
Timestamp:
Jul 9, 2013, 10:09:55 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
78844a1
Parents:
405a724
Message:

increase font size for performance plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/MemoryUsage.C

    r405a724 ra9d423d  
    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.