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

Home » Public Forums » archive » text inversion when inverting axis
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: text inversion when inverting axis [message #88656 is a reply to message #88655] Mon, 26 May 2014 10:08 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
My impression is that the text function likes to draw from the minimum value towards maximum value when the DATA keyword is being used. To fix this, you can try changing the orientation of the text. This is what worked for me

a=Findgen(10)
b=Sqrt(a)
pl=Plot(a, b, XRANGE=[9,0])
tx=Text(2, 2.5, 'b=sqrt(a)', /DATA, BASELINE=[1,0,0], ORIENTATION=45)


Note that the docs say that BASELINE=[1,0,0] is the default. However, the following two lines have different results (for me, on IDL 8.2).

tx1=Text(2, 2.5, 'b=sqrt(a)', /DATA, ORIENTATION=45, BASELINE=[1,0,0])
tx2=Text(2, 2.5, 'b=sqrt(a)', /DATA, ORIENTATION=45)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Having READ ingest the input without waiting for return key to be hit?
Next Topic: idl crashes

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

Current Time: Sat Oct 11 15:42:41 PDT 2025

Total time taken to generate the page: 2.07952 seconds