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

Home » Public Forums » archive » contour and LABEL_FORMAT not playing nicely
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
contour and LABEL_FORMAT not playing nicely [message #90767] Fri, 10 April 2015 13:28 Go to next message
Gordon Farquharson is currently offline  Gordon Farquharson
Messages: 48
Registered: December 2010
Member
I'm stumped. What am I doing wrong?

contour(findgen(10,10), LABEL_FORMAT='format_deg_label')

where format_deg_label.pro contains

FUNCTION format_deg_label, axis, index, value, DATA=data

return, strtrim(string(value, FORMAT='(I)'), 2) + ' deg.'

END

What I expect to see is that each contour label is suffixed with "deg.". What I get is none of the contour labels have a suffix, and the first three labels are displayed in a slightly larger font than the last two.

I'm using IDL 8.4.1.

Gordon
Re: contour and LABEL_FORMAT not playing nicely [message #90769 is a reply to message #90767] Mon, 13 April 2015 20:54 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, April 10, 2015 at 2:28:11 PM UTC-6, Gordon Farquharson wrote:
> I'm stumped. What am I doing wrong?
>
> contour(findgen(10,10), LABEL_FORMAT='format_deg_label')
>
> where format_deg_label.pro contains
>
> FUNCTION format_deg_label, axis, index, value, DATA=data
>
> return, strtrim(string(value, FORMAT='(I)'), 2) + ' deg.'
>
> END
>
> What I expect to see is that each contour label is suffixed with "deg.". What I get is none of the contour labels have a suffix, and the first three labels are displayed in a slightly larger font than the last two.
>
> I'm using IDL 8.4.1.
>
> Gordon

Hi Gordon,
I see the same behavior. I'll dig into the code and see what is happening. Thanks for reporting it!
-Chris
ExelisVIS
Re: contour and LABEL_FORMAT not playing nicely [message #90770 is a reply to message #90769] Mon, 13 April 2015 22:14 Go to previous message
Gordon Farquharson is currently offline  Gordon Farquharson
Messages: 48
Registered: December 2010
Member
Hi Chris

On Monday, April 13, 2015 at 8:54:31 PM UTC-7, Chris Torrence wrote:

> I see the same behavior. I'll dig into the code and see what is happening. Thanks for reporting it!

Thanks very much.

Gordon
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: My IDL 8.4 crashes on HELP,/LAMBDA command
Next Topic: Default values for keywords

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

Current Time: Wed Oct 08 15:35:10 PDT 2025

Total time taken to generate the page: 0.00548 seconds