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

Home » Public Forums » archive » Re: Format of contour labels?
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
Re: Format of contour labels? [message #58204] Thu, 17 January 2008 08:42
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
MichaelT wrote:
>>
>> Yes, you might have to move to object graphics. Lots
>> of formatting available there. :-)
>>
>> Cheers,
>>
>> David
>
> Thanks for both your answers.
> I also thought about using c_annotate, but had hoped there'd be
> another way.

Well, that shouldn't prove too hard... all you have to do is to
write a small function that takes in a float and outputs a string
in the format you like. Granted, it may take a little while to do,
but I am sure it will be much faster than learning obj graphics.
And, you can use that function later on for labeling axis tick
marks as well, if you like.

Ciao,
Paolo


> Unfortunately, I don't know much about object graphics... So I should
> probably get "IDL Programming Techniques, 2nd Edition", right?
>
> Cheers, Michael
Re: Format of contour labels? [message #58205 is a reply to message #58204] Thu, 17 January 2008 08:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
MichaelT writes:

> Thanks for both your answers.
> I also thought about using c_annotate, but had hoped there'd be
> another way.
> Unfortunately, I don't know much about object graphics... So I should
> probably get "IDL Programming Techniques, 2nd Edition", right?

Power Graphics with IDL by Ronn Kling would probably do you
more good for object graphics. :-)

And although it is VERY long in the tooth, and badly
needs updating, XCONTOUR still goes a long way in getting
you started along this path:

http://www.dfanning.com/programs/xcontour.pro

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Format of contour labels? [message #58206 is a reply to message #58205] Thu, 17 January 2008 08:29 Go to previous message
MichaelT is currently offline  MichaelT
Messages: 52
Registered: May 2006
Member
>
> Yes, you might have to move to object graphics. Lots
> of formatting available there. :-)
>
> Cheers,
>
> David

Thanks for both your answers.
I also thought about using c_annotate, but had hoped there'd be
another way.
Unfortunately, I don't know much about object graphics... So I should
probably get "IDL Programming Techniques, 2nd Edition", right?

Cheers, Michael
Re: Format of contour labels? [message #58217 is a reply to message #58206] Wed, 16 January 2008 11:55 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bob Crawford writes:

> c_annotation perhaps?
>
> Unfortunately you'll have to specifiy the levels explicitly.
> e.g. contour, z, levels=3D[500000],c_annotation=3D["500,000"]

Yes, you might have to move to object graphics. Lots
of formatting available there. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Format of contour labels? [message #58218 is a reply to message #58217] Wed, 16 January 2008 10:46 Go to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Jan 16, 12:40 pm, MichaelT <michael.theus...@googlemail.com> wrote:
> Dear all,
> can anybody tell me if it is possible to define the format of a
> contour label in a contour plot? So for example to get 500,000 instead
> of 0.5x10^6?
>
> Thanks, Michael

c_annotation perhaps?

Unfortunately you'll have to specifiy the levels explicitly.
e.g. contour, z, levels=[500000],c_annotation=["500,000"]

Bob.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: azimuthal median
Next Topic: Re: Logic problem

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

Current Time: Wed Oct 08 19:36:01 PDT 2025

Total time taken to generate the page: 0.00680 seconds