Re: TGraph: BuildLegend() and the Draw() default options

From: Vassili Maroussov <Vassili.Maroussov_at_cern.ch>
Date: Thu, 24 Jun 2010 16:41:07 +0200


Dear Oliver,

what I meant: I expect very similar behavior of objects with Draw() method in ROOT. If I draw, for instance, TF1 I'll get some graphical output with default options and BuildLegend will use a proper background, but TGraph behaves somehow in a different way. Sure it is not a bug, but a feature, but I think with default options some output must always be produced... Shouldn't defaults be "AL"?

Regards,

Vassili

On 06/24/2010 04:07 PM, Olivier Couet wrote:
>
>> For some reason it uses black background for the legend graphical
>>
> part, - please see the image attached. How to correct that?
>
> BuildLegend uses all the primitives attribute (see the help).
> Very likely you did not set the Fill Area color and Fill area interior
> style and the default values are used.
>
>

TGraphDefaults.png
Received on Thu Jun 24 2010 - 16:41:11 CEST

This archive was generated by hypermail 2.2.0 : Thu Jun 24 2010 - 17:50:01 CEST