Orientation of Contour Labels [message #87842] |
Thu, 27 February 2014 14:27  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I just discovered that the keyword C_Use_Contour_Orientation=1 will make
the contour labels readable on the contour function command. Well, when
I say "readable" I mean in areas of the plot where they are not all
jumbled together. I seem to recall some way to "thin" these jumbled
contour labels. Does anyone recall something like that?
Humm. Just found C_Label_Interval. I think this is what I remember. You
can play with this value. But in steep areas of the contour (see the
Basic Contour Plot we have been trying to get right all day), they still
stack up on themselves no matter what value you use.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Orientation of Contour Labels [message #87848 is a reply to message #87842] |
Thu, 27 February 2014 19:18   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Thursday, February 27, 2014 3:27:05 PM UTC-7, David Fanning wrote:
> Folks,
>
>
>
> I just discovered that the keyword C_Use_Contour_Orientation=1 will make
>
> the contour labels readable on the contour function command. Well, when
>
> I say "readable" I mean in areas of the plot where they are not all
>
> jumbled together. I seem to recall some way to "thin" these jumbled
>
> contour labels. Does anyone recall something like that?
>
>
>
> Humm. Just found C_Label_Interval. I think this is what I remember. You
>
> can play with this value. But in steep areas of the contour (see the
>
> Basic Contour Plot we have been trying to get right all day), they still
>
> stack up on themselves no matter what value you use.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
You could also use the LABEL_THRESHOLD property that was added to IDLgrContour in IDL 8.3. For some reason we didn't expose it on the Contour function...
IDL> c = contour(/test)
IDL> c.setproperty, label_threshold=0.5,/undoc
-Chris
|
|
|
|
Re: Orientation of Contour Labels [message #87869 is a reply to message #87857] |
Fri, 28 February 2014 10:21   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Friday, February 28, 2014 7:23:23 AM UTC-7, David Fanning wrote:
>
> Thanks, Chris. I'm curious, though. Why is the default behavior of the
>
> Contour command to display contour labels upside down? It's a curious
>
> choice. I honestly can't think how this default feature might be to some
>
> advantage. Maybe if you are a spy and have to read documents upside
>
> down.
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
I don't think they are intentionally upside down, are they? Don't the labels just "blindly" follow the contour lines, so that "half" of them appear upside down?
Maybe just change your perspective. :-)
-Chris
|
|
|
Re: Orientation of Contour Labels [message #87871 is a reply to message #87869] |
Fri, 28 February 2014 10:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Chris Torrence writes:
> I don't think they are intentionally upside down, are they? Don't the labels just "blindly" follow the contour lines, so that "half" of them appear upside down?
>
> Maybe just change your perspective. :-)
It's just like PostScript landscape output. Just rotate the damn sheet
of paper if you think it's upside down! :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|