comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » legend() with symbols
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: legend() with symbols [message #88768 is a reply to message #88767] Tue, 17 June 2014 09:58 Go to previous messageGo to previous message
Starbuck is currently offline  Starbuck
Messages: 11
Registered: June 2012
Junior Member
On Tuesday, June 17, 2014 10:33:41 AM UTC-6, Gordon Farquharson wrote:
> Hi All
>
>
>
> Is there any way to change the behaviour of legend() when using symbols in a plot? For example, the following code produces a legend, but the legend text is preceded by three '+' symbols, instead of the more traditional single '+'. While the output is not incorrect, it does look a little odd.
>
>
>
> lp1 = plot(findgen(10), NAME='Test', LINESTYLE='None', SYMBOL='+')
>
> lg1 = legend(TARGET=lp1, POSITION=[0.1,0.9], HORIZONTAL_ALIGNMENT='LEFT', $
>
> /RELATIVE)
>
>
>
> Gordon

I don't think there is a way to do this by default. I wrote the following blog post that provides a possible workaround:

http://www.exelisvis.com/Company/PressRoom/Blogs/IDLDataPoin tDetail/TabId/902/ArtMID/2926/ArticleID/13952/Customizing-Mo use-Handler-for-IDL-8-Graphics-Windows.aspx
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HISTOGRAM
Next Topic: MONTHS IN PLOT

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:05:41 PDT 2025

Total time taken to generate the page: 0.56629 seconds