Re: How to edit a legend?

From: Dmitry A. Shtol <D.A.Shtol_at_inp.nsk.su>
Date: Tue, 12 Apr 2005 11:51:01 +0700


Hi!
I followed your advice, but the editor changes attributes of TLegend, but not TLegendEntry object. An attempt to change line style (for example) changes a style of a line of frame, but not line in Entry.

Thanks,

-- 
Dmitry A. Shtol                        (SND group)    
Budker Institute of Nuclear Physics  







On Mon, Apr 11, 2005 at 03:02:56PM +0200, Ilka Antcheva wrote:

> Hi Dmitry,
>
> I spent some time to investigate this case and what I see is that any
> legend entry is created according the line/marker/fill/text attributes
> of the corresponding object in the canvas. If you change the line type
> of the object itself, this will reflect into the corresponding legend
> entry.
>
> Please use the user interface available via the canvas View menu /
> Editor. After the graphics editor shows up on the left of the canvas
> area, click with the left mouse button on the object you want to change
> to select it. This will load the corresponding user interface in the
> editor via which you can change different attributes.
>
> Meanwhile the methods
>
> virtual void EditEntryAttFill();
> virtual void EditEntryAttLine();
> virtual void EditEntryAttMarker();
> virtual void EditEntryAttText();
> were removed from the context menu of TLegend objects.
>
>
> Cheers, Ilka
>
>
> Dmitry A. Shtol wrote:
>
> >Hi!
> >I have a canvas saved to root file. It contains a legend. How I can edit a
> >type of line in legend entries? Function TLegend::>EditEntryAttLine()
> >doesn't help: it changes type of border line.
> >
> >
> >
> >
Received on Tue Apr 12 2005 - 06:51:09 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET