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

Home » Public Forums » archive » Bug in legend() for horizontal orientations
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Bug in legend() for horizontal orientations [message #93384] Tue, 28 June 2016 11:14
Morgan Rehnberg is currently offline  Morgan Rehnberg
Messages: 3
Registered: May 2013
Junior Member
I couldn't find a place to submit a bug report on the IDL website, so I'm going to put it here and hopefully someone will see it!

When making a horizontal legend, it does not properly center in the horizontal direction. In the below code, switching orientation=0 (vertical) to orientation=1 (horizontal) causes the legend to be badly offset.

pro test

data = indgen(100)
data2 = data/2.

p = plot(data, name='This Is A Long Data Title')
p2 = plot(data2, name='This Is A Long Data 2 Title', /overplot)

l = legend(target=[p,p2], horizontal_alignment='center', /normal, orientation=0, position=[0.5,0.5], vertical_alignment='center')

end
[Message index]
 
Read Message
Previous Topic: How to use mpfitfun.pro for fitting?
Next Topic: How to give values as a range in array?

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

Current Time: Wed Oct 08 13:56:01 PDT 2025

Total time taken to generate the page: 0.00521 seconds