X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Jan 2017 07:47 AM by  anon
LEGEND function
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:33
New Member


--
27 Jan 2017 07:47 AM
    I'm using IDL 8.5.1. I'm using the PLOT function, and making several curves in it (that is, invoking PLOT several times, using CURRENT to point to the original, and /OVER). In creating the legend, I'd like some parts of the legend to respect the Tex-Like typesetting that is now available in IDLs TEXT objects. However, when I use the TARGET keyword to LEGEND, and appropriate mathematical construct in the NAME property of the plots, they are not typeset at all, just printed directly. I can get mathematical typesetting as advertised if I use the LABEL keyword LEGEND. But LABEL takes only one item (scalar!), so this really only works if I am plotting one curve - or if I want ALL curves in a multi-line plot to have the exact same LEGEND name! If I could add elements to LEGEND, that might work - kind of like over plotting, but adding legend items one at a time. There seems to be no way to do that. But it also seems very counterintuitive that LABEL does not take string arrays as input. That would be a simple fix and would allow construction of LEGEND objects that I need. On a different note: I notice that the separate, different, IDLgrLEGEND can take a title for its legend. Will this ever be available for the LEGEND object?

    Deleted User



    New Member


    Posts:33
    New Member


    --
    27 Jan 2017 08:25 AM
    My mistake. Not sure what I was doing wrong - LEGEND does respect mathematical symbols in via the NAME property of PLOT.
    You are not authorized to post a reply.