Could you try the following logic?
gStyle->SetPalette(1,0);
T->SetMarkerStyle(22); T->SetMarkerSize(1); T->Draw("a:b:a+c>>h1(0,1,0,1)","","zcol");TH2F *h1 = (TH2F*)gPad->GetPrimitive("h1"); T->SetMarkerSize(2);
Rene Brun
Benjamin Monreal wrote:
>
> I want to make a scatter plot in which the points are colored
> according to a variable. However, I want some of the points large
> and some small. Here's how I try to do it:
>
> TNtuple* nt = new TNtuple("nt","nt","a:b:c"); //random data for
> illustration
> for (int i=0;i<1000;i++)
> nt->Fill(gRandom->Rndm(),gRandom->Rndm(),gRandom->Rndm());
>
> gStyle->SetPalette(1,0);
> nt->SetMarkerStyle(22);
> nt->SetMarkerSize(1);
> nt->Draw("a:b:a+c","","zcol"); // This correctly draws and colors
> all of the small points ...
> nt->SetMarkerSize(2);
> nt->Draw("a:b:a+c","b > 0.5","zcol same"); // but these points all
> come out green.
>
> What's going on, and is there a way around it?
>
> Thanks,
>
> -Ben Monreal
>
>
>
> ------------------------------------------------------------------------
>
>
>
>
Received on Thu Sep 18 2008 - 10:32:58 CEST
This archive was generated by hypermail 2.2.0 : Thu Sep 18 2008 - 23:50:02 CEST