[ROOT] Histograms with markers

From: Markus Brehm (brehm@physi.uni-heidelberg.de)
Date: Thu Aug 08 2002 - 18:43:20 MEST


Hi!
If I try to draw a histogram (with option "P")  where the bin contents
varies a lot (small in one bin and high in the neighbouring bin) I get a
strange behaviour.
If the canvas is big enough or I zoom in, I get what I expect (two
"lines") if I zoom out or make the canvas smaller, the histogram is filled
in black, no matter which marker color I have selected before.
I am using root  3.03/07 on Suse 7.3
The behaviour can be reproduced by the following macro:
{
  TH1F* h1=new TH1F("hist","hist",2048,0,2047);
  for(int i=0; i<1024;i++){
	 h1->SetBinContent(i*2,i);
	 h1->SetBinContent(i*2+1,5);
  }
  h1->SetMarkerColor(2);
  h1->SetMarkerStyle(1);
  h1->Draw("P");
}
Thanks for your answers,
regards,
	Markus

======================================
Markus Brehm
Physikalisches Institut der Universitaet Heidelberg
Philosophenweg 12
D-69120 Heidelberg
Tel. +49 6221 54 9345
Fax  +49 6221 475733
brehm@physi.uni-heidelberg.de



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:03 MET