Re: COLZ option

From: Monika Sharma <monika_at_rcf.rhic.bnl.gov>
Date: Wed, 28 Jun 2006 09:19:23 +0530

Hi,

Thanks for explaining it.
I have put the gif file in the following area : http://www.star.bnl.gov/~monika/neg_pos.gif

Is there anyway I can improve it. Colours are quite faded.

Thanks for your help.

Regards
Monika

Olivier Couet wrote:

>Hi,
>
> I think you misunderstood what option COLZ is doing:
>
> // For each cell (i,j) a box is drawn with a color proportional
> // to the cell content.
> // The color table used is defined in the current style (gStyle).
> // The color palette in TStyle can be modified via TStyle::SeTPaletteAxis.
>
>So, no markers are involved in the COLZ drawing. So the markers attributes
>changes have no effect on the COLZ layout.
>
> Cheers, O.Couet
>
>
>On Tue, 27 Jun 2006, Monika Sharma wrote:
>
>
>
>>Hi everyone,
>>
>>I am trying to draw a 2D scatter plot with "colz" option.
>>But I am not able to change marker style/marker size.
>>
>>By default "colz" option takes marker style (1) which is too
>>small and different colours are quite faded. How can I change the
>>style and size? Following what I am trying to do :
>>
>>TH2F *h_2d = new TH2F("h_2d","", 1000, 0, 50, 1000, 0, 50);
>>
>> TStyle *myStyle = new TStyle("myStyle","my style");
>> myStyle->SetPalette(1,0);
>> myStyle->cd();
>> gStyle->SetOptStat(0);
>>{
>>.
>>.
>>.
>>.
>>h_2d->Fill(,)
>>.
>>.
>>.
>>}
>>
>>
>>
>> h_2d->SetMarkerStyle(29);
>> h_2d->SetMarkerSize(1.2);
>> h_2d->Draw("colz");
>>
>>
>>Thanks for any help.
>>
>>Regards
>>Monika
>>
>>
>>
>>
>
>
>
Received on Wed Jun 28 2006 - 05:49:44 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET