13void hist053_Graphics_candle_scaled()
17 TH2I *
h1 =
new TH2I(
"h1",
"GausXY", 20, -5, 5, 100, -5, 5);
18 TH2I *h3 =
new TH2I(
"h3",
"GausXY", 100, -5, 5, 20, -5, 5);
20 for (
int j = 0; j < 100000; j++) {
21 auto myRand1 =
gRandom->Gaus(0, 1);
22 auto myRand2 =
gRandom->Gaus(0, 1);
23 h1->Fill(myRand1, myRand2);
24 h3->
Fill(myRand1, myRand2);
31 h1->SetTitle(
"CandleX scaled");
32 h1->DrawCopy(
"candleX2");
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
static void SetScaledViolin(const Bool_t vScale=true)
Static function to set scaling between violin-withs.
static void SetScaledCandle(const Bool_t cScale=true)
Static function to set scaling between candles-withs.
void SetTitle(const char *title) override
Change/set the title.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
TObject * Clone(const char *newname="") const override
Make a complete copy of the underlying object.
2-D histogram with an int per channel (see TH1 documentation)
Int_t Fill(Double_t) override
Invalid Fill method.