contour and LABEL_FORMAT not playing nicely [message #90767] |
Fri, 10 April 2015 13:28  |
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   |
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
|
|
|
|