ROOT   Reference Guide

## Detailed Description

This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas) and and divide it in 9 sub-pads.

/*************************************************************************
* *
* For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see$ROOTSYS/README/CREDITS. *
*************************************************************************/
#include "ROOT/RCanvas.hxx"
#include "ROOT/RLine.hxx"
{
using namespace ROOT::Experimental;
auto canvas = RCanvas::Create("what to do with a pad!");
for (int i = 0; i < 3; ++i)
for (int j = 0; j < 3; ++j) {
}
canvas->Show();
}
Date
2015-03-22
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

ROOT::Experimental::RCanvas::Create
static std::shared_ptr< RCanvas > Create(const std::string &title)
Create new canvas instance.
Definition: RCanvas.cxx:103
RCanvas.hxx
TCanvas::Show
void Show()
Show canvas.
Definition: TCanvas.cxx:2238
ROOT::Experimental
Definition: RDirectory.hxx:30