Re: [ROOT] Way to rotate pads or histograms by 90 degrees?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Mar 29 2003 - 17:39:37 MET


Hi Chris,

You can use the option "hbar" as in this example.

void hbar() {
   TCanvas *c1 = new TCanvas("c1");
   TH1F *h = new TH1F("h","test",100,-3,3);
   h->FillRandom("gaus",2000);
   h->SetFillColor(2);
   h->Draw("hbar");
   c1->RedrawAxis();
}

Rene Brun

On Fri, 28 Mar 2003, 
Christopher B. Lirakis wrote:

> I am trying to arrange a set of graphs, a time series and subsequent 
> histogram. I would like to have the histogram display 90 degrees with the 
> base along the Y axis of the time series, so it is obvious that it is a 
> projection. Is there an easy way to do this?
> Regards
> Chris
> 
> -Christopher B. Lirakis, Phd
> -High Performance Computing
> -BBN Technologies
> -127 John Clarke Rd
> -Middletown, RI 02842
> -
> -(401) 849-2543 (voice) - Front Desk
> -(401) 848-3537 (voice) - Direct Line.
> -(401) 849-8611 (fax)
> -(401) 788-4607 (cell)
> -(401) 872-5689 (Pager)
> -
> - http://www.bbn.com
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET