Logo ROOT   6.14/05
Reference Guide
pad.cxx File Reference

Detailed Description

/*************************************************************************
* Copyright (C) 1995-2015, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#include "Rtypes.h"
R__LOAD_LIBRARY(libROOTGpadv7);
#include "ROOT/TCanvas.hxx"
#include "ROOT/TFrame.hxx"
#include "ROOT/TLine.hxx"
void pad()
{
using namespace ROOT;
using namespace ROOT::Experimental;
auto canvas = Experimental::TCanvas::Create("what to do with a pad!");
auto pads = canvas->Divide(3, 3);
auto &pad12 = pads[1][2];
pad12->SetAllAxisBounds({{50., 250.}, {-1., 1.}});
// Please fix TLine such that {x,y} are TPadPos!
//pad12->Draw(Experimental::TLine({100._user, 0.5_normal}, {200._user, 0.5_normal}));
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!
Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch

Definition in file pad.cxx.