RE: Unusual Drawing Problem

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Tue, 19 Apr 2011 13:30:18 +0000


> Problem solved.

Good !!

From: Alexandros Attikis
Sent: Tuesday, April 19, 2011 3:29 PM
To: Olivier Couet
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] Unusual Drawing Problem

Hi again,

I found the problem and it is a weird one. Apparently I chose to fill all but one of the histograms with the fill-style 3000, when I meant to use 1001 (solid). This however did not result in a compilation error or even a drawing error as the canvas was painted correctly and even saving in PNG format was fine. However, vector format pictures did not register the fill color. Now, when I added another histogram with a fill style 3354 to the "equation" caused all the histogram styles to be changed to 3001!

Anyway, this must sound too complicated. The bottom line is that I used 3000 as fill style instead of 1001 and the end result was this strange result! Problem solved.

Cheers,
Alexandros

On Apr 18, 2011, at 2:32 PM, Alexandros Attikis wrote:

Hi Olivier,

that is a good suggestion. I will try that.

Cheers,
Alexandros

On Apr 18, 2011, at 2:30 PM, Olivier Couet wrote:

Hi Alexandros,

If the last histogram you draw is really a clone you should not see such thing. It is like drawing a new histogram. So the style of the other histograms should not change. May be you can save the file as a .C macro and see if the saved macro reproduces the problem ?

Cheers,
Olivier

-----Original Message-----
From: Alexandros Attikis
Sent: Monday, April 18, 2011 2:23 PM
To: Olivier Couet
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] Unusual Drawing Problem

Hi Olivier,

the problem is that the plotting macro involves a PlotterClass which is quite lengthy so reproducing the problem is not trivial, and even if successful will probably take one day to prepare. So I was hoping that this problem was seen before, so at to get a clue what can be causing it. I am using ROOT 5.28 with SLC5 (64bit).

Cheers,
Alexandros

On Apr 18, 2011, at 12:56 PM, Olivier Couet wrote:

Hi,

Can you send a small example reproducing the problem ? On which machine are you running ROOT ?
Which ROOT version ?

Cheers,
O.Couet

-----Original Message-----
From: owner-roottalk_at_root.cern.ch<mailto:owner-roottalk_at_root.cern.ch> [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Alexandros Attikis Sent: Monday, April 18, 2011 11:55 AM
To: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: [ROOT] Unusual Drawing Problem

Hi all,

I am experiencing an unusual problem.
I have a script in which I clone one of histogram, rename it and then I draw it with the option ("sameE2") on a canvas with 4 more histograms.
I set the fill style of this histogram to 3354 (or any other hatched style) but the result is to change all histograms from solid fill color to 3001 (or something similar). If i disable the style of this histogram or choose not to draw it the problem disappears and all histos are drawn with the selected styles. Has anyone seen anything like this before?

Cheers,
Alexandros Received on Tue Apr 19 2011 - 15:30:24 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 19 2011 - 23:50:01 CEST