Re: How to change marker in each bin

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Fri, 25 Mar 2005 20:37:44 +0100 (MET)


Use a THStack or a TMultiGraph.
See an example (for 2-d histograms) in tutorial multicolor.C. You should be able to translate this example to the 1-d case.

Rene Brun

On Fri, 25
Mar 2005, Alessio Sarti wrote:

> Hi all,
> I'd like to know if there's a simple way to make root change a marker
> style in each bin of an histogram:
> let's say that I need a star for the first 2 bins, then a circle for the
> neext two, and so on: how can I make that?
>
> Thanks for your help and attention,
> Alessio
>
> ______________________________________________________
> Alessio Sarti INFN Frascati
>
> >>>I'm in Frascati<<<
>
> Cell +39-06-94038166
> Office +39-06-94032776
> Fax +39-06-94032427
>
> F. "It's not time to make a change, just relax take it easy.."
> S. "... and I know that I have to go away. I know, I have to go."
> (C. Stevens)
>
Received on Fri Mar 25 2005 - 20:37:53 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET