Logo ROOT  
Reference Guide
RCanvas examples

These are RCanvas examples ...

Files

file  df104.py
 The Higgs to two photons analysis from the ATLAS Open Data 2020 release, with RDataFrame.
 
file  df105.py
 The W boson mass analysis from the ATLAS Open Data release of 2020, with RDataFrame.
 
file  raxis.cxx
 This ROOT7 example demonstrates how to create a RCanvas and draw several RAxis objects with different options.
 
file  rbox.cxx
 This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas) and draw ROOT 7 boxes in it (RBox).
 
file  rbox.py
 This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas) and draw ROOT 7 boxes in it (RBox).
 
file  rcanvas_mt.cxx
 This macro demonstrate usage of ROOT7 graphics from many threads Three different canvases in three different threads are started and regularly updated.
 
file  rcanvas_update.cxx
 This macro shows how ROOT RCanvas::Update method is working.
 
file  rframe.cxx
 This ROOT 7 example shows how to create a frame.
 
file  rh1.cxx
 This macro generates two RH1D, fills them and draw with different options in RCanvas.
 
file  rh1_large.cxx
 This macro generates really large RH1D histogram, fills it with predefined pattern and draw it in a RCanvas, using Optmize() drawing mode.
 
file  rh1_twoscales.cxx
 This macro generates two RH1D, fills them and draw in RCanvas.
 
file  rh2.cxx
 This macro generates RH2D and draw it with different options in RCanvas.
 
file  rh2_colz.cxx
 This macro generates a small V7 TH2D, fills it with random values and draw it in a V7 canvas, using configured web browser.
 
file  rh2_large.cxx
 This macro generates really large RH2D histogram, fills it with predefined pattern and draw it in a RCanvas, using Optmize() drawing mode.
 
file  rh3.cxx
 This macro generates a small RH3D, fills it with random values and draw it in RCanvas, using configured web browser.
 
file  rh3_large.cxx
 This macro generates really large RH2D histogram, fills it with predefined pattern and draw it in a RCanvas, using Optmize() drawing mode.
 
file  rlegend.cxx
 This macro generates two TH1D objects and build RLegend In addition use of auto colors are shown.
 
file  rline.cxx
 This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas) and draw ROOT 7 lines in it (RLine).
 
file  rline_style.cxx
 This ROOT 7 example shows the various line styles.
 
file  rline_width.cxx
 This ROOT 7 example shows the various line widths.
 
file  rmarker.cxx
 This ROOT 7 example shows the various marker styles.
 
file  rpad.cxx
 This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas) and and divide it in 9 sub-pads.
 
file  rpave.cxx
 This macro draw different variants of RPave on the RCanvas.
 
file  rstyle.cxx
 This ROOT 7 example demonstrates how to customize RLine object using RStyle "normal" coordinates' system.
 
file  rtext_align.cxx
 This macro demonstrate the text align attribute for RText.
 
file  rtext_angle.cxx
 This macro demonstrate the text attributes for RText.
 
file  rtext_font.cxx
 This macro demonstrate usage of existing ROOT fonts for RText.
 
file  subpads.cxx
 This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas), divide on sub-sub pads and draw histograms there.
 
file  symlog.cxx
 This ROOT 7 example shows how to use symlog scale on RAxis See discussion on forum https://root-forum.cern.ch/t/symlog-scale-for-plotting/ for more details.
 
file  th1_twoscales.cxx
 Macro illustrating how to superimpose two histograms with different scales on the RCanvas.
 
file  tobject.cxx
 This macro shows how ROOT objects like TH1, TH2, TGraph can be drawn in RCanvas.