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

Home » Public Forums » archive » xyouts precision
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: xyouts precision [message #42958 is a reply to message #42863] Tue, 08 March 2005 06:38 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
andrew.cool@dsto.defence.gov.au (Andrew Cool) writes:


> Reimar Bauer <R.Bauer@fz-juelich.de> wrote in message news:<d097n5$hj6$2@zam602.zam.kfa-juelich.de>...
>
> [snip]
>>
>> Dear Krista,
>>
>> I am not sure to understand right but probably this is the solution
>> plot,findgen(10),ytitle='first!Csecond'
>>
>> The !C is used for the linebreak
>>
>> cheers
>> Reimar
>
> Well!! After 14 years of using IDL, I never knew this!
> And I wish I had found this out back in 1991.

I use this all the time. It's great.

One useful way to get "top-right" justified labels on graphs is to do
something like this,

xyouts, !x.crange(1), !y.crange(1), /data, '!CLabel Text ', align=1.0

The real trick is the "!C" in front. Normally, a Y coordinate of
!Y.CRANGE(1) would put the text above the top of the graph, but by
putting a carriage return, the text appears just below the top, inside
the graph.

The ALIGN=1.0 keyword puts the text against the right side of the
graph, and the few " " spaces at the end give it a bit of a margin.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error handing in embedded applications
Next Topic: Re: looking for source of a caught runtime error.

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

Current Time: Sat Oct 11 21:27:40 PDT 2025

Total time taken to generate the page: 2.39935 seconds