RE: gets(S) issue

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 14 Jan 2011 15:36:18 +0100


So you see the 1st 10 correctly and then it goes wrong ? that's right ?

It is weird.. if it works for the 1st 10 it should be the same for the next 90 ones...

Can you send me the macro if does not require a huge environment to be run ?  

From: Dmitry Kotov [mailto:dmitriy.kotov_at_gmail.com] Sent: Friday, January 14, 2011 3:19 PM
To: Olivier Couet
Cc: roottalk_at_root.cern.ch
Subject: Re: [ROOT] gets(S) issue  

Thanks Oliver,

getchar still gives plain Canvas,
but gets(S) allows me to see nearly 10 slices, after which the Canvas again becomes plain.

I have a while{} structure where I make and draw slices. Before this structure I created TCanvas (it isn't being created 100 times in while structure).

any ideas?

Dmitry

On Fri, Jan 14, 2011 at 5:11 PM, Olivier Couet <Olivier.Couet_at_cern.ch> wrote:  

Ø I tried getchar and gets functions, they work, but Canvas remains plain white all the time.

Put gPad->Update() before getchar. It should help.  

From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Dmitry Kotov Sent: Friday, January 14, 2011 3:08 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] gets(S) issue  

Hi all,

I've got TH2F which i divide into slices, say 100 slices. Each slice I draw as a TH1F. I need to draw 1 slice, then look at it , press anykey and see another on the same TCanvas. Instead ROOT just produceds 100 of them quickly, so the only one i can see is the 100th slice (last one).

I tried getchar and gets functions, they work, but Canvas remains plain white all the time.

Is there any way to manually renew the Canvas, or probably some other key-awaiting functions.

Thanks a lot,
Dmitry

<mailto:mnaglis_at_rcf.rhic.bnl.gov> Received on Fri Jan 14 2011 - 15:36:24 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 17 2011 - 05:50:01 CET