This macro generates a small V7 TH2D, fills it with random values and draw it in a V7 canvas, using configured web browser.
#include "ROOT/RFrameTitle.hxx"
{
for (
int n=0;
n<10000;
n++)
pHist->Fill({gRandom->Gaus(5.,2.), gRandom->Gaus(5.,2.)});
auto canvas = RCanvas::Create("RH2 with color palette");
auto frame = canvas->AddFrame();
frame->gridX = false;
frame->gridY = false;
frame->ticksX = 2;
frame->ticksY = 2;
frame->x.zoomMin = 2;
frame->x.zoomMax = 8;
frame->y.zoomMin = 2;
frame->y.zoomMax = 8;
auto title = canvas->Draw<
RFrameTitle>(
"2D histogram with color palette");
stat->fill.style = RAttrFill::kSolid;
canvas->SetSize(1000, 700);
canvas->Show();
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
RAttrValue< RColor > color
! fill color
Objects used to configure the different axis types.
A color palette draw near the frame.
RAttrFill fill
! fill attributes
- Date
- 2020-03-04
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Definition in file rh2_colz.cxx.