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 
Switch to threaded view of this topic Create a new topic Submit Reply
draw text parallel to a sloping line [message #19197] Sat, 04 March 2000 00:00 Go to next 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!
Re: draw text parallel to a sloping line [message #19293 is a reply to message #19197] Fri, 10 March 2000 00:00 Go to previous message
kashyap is currently offline  kashyap
Messages: 26
Registered: April 1993
Junior Member
In article <MPG.132b5b8566628e75989a76@news.frii.com>, David Fanning <davidf@dfanning.com> wrote:
>
> Well, the solution is correct. But I think the explanation
> could use a little work. :-)

well hmm.. if we were all adept at clear and lucid explanations,
we would all be writing books. :->
--
____________________________________________________________ __________________
kashyap@head-cfa.harvard.edu 617 495 7173 [CfA/P-146] 617 496 7173 [F]
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plotting double precision
Next Topic: Re: Q: contour levels from IDL

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

Current Time: Wed Oct 08 18:40:08 PDT 2025

Total time taken to generate the page: 0.00619 seconds