Re: gets(S) issue

From: Dmitry Kotov <dmitriy.kotov_at_gmail.com>
Date: Fri, 14 Jan 2011 17:19:26 +0300


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
>
>

<mnaglis_at_rcf.rhic.bnl.gov> Received on Fri Jan 14 2011 - 15:19:53 CET

This archive was generated by hypermail 2.2.0 : Fri Jan 14 2011 - 17:50:01 CET