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 
Return to the default flat view Create a new topic Submit Reply
contour and LABEL_FORMAT not playing nicely [message #90767] Fri, 10 April 2015 13:28 Go to previous 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
[Message index]
 
Read Message
Read Message
Read Message
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:57:19 PDT 2025

Total time taken to generate the page: 0.00227 seconds