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

Home » Public Forums » archive » draw text parallel to a sloping line
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
draw text parallel to a sloping line [message #19197] Sat, 04 March 2000 00:00 Go to previous message
Kristian Kjaer is currently offline  Kristian Kjaer
Messages: 58
Registered: June 1998
Member
I want to draw some text parallel to a sloping line, e.g.,
the line through (X,Y) with a given Slope:

IDL> X = 24.5259 & Y = 16789.1 & Slope = -1763.03 ; data coordinates
IDL> dX=2.2 & plot, [X-dX,X+dX], Y+[-dX,dX]*Slope

Then this doesn't give the desired result:

IDL> O_angle=atan(Slope)*!radeg
IDL> xyouts,X,Y,'A_String_Parallel_To_A_Line',$
IDL> alignment=0.5,orientation=O_angle

But then, how to do?
Any help appreciated!
[Message index]
 
Read Message
Read Message
Previous Topic: Plotting double precision
Next Topic: Re: Q: contour levels from IDL

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

Current Time: Fri Oct 10 13:31:29 PDT 2025

Total time taken to generate the page: 0.32361 seconds