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

Home » Public Forums » archive » Orientation 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
Orientation of Contour Labels [message #87842] Thu, 27 February 2014 14:27 Go to next message
David Fanning is currently offline  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 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  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 #87857 is a reply to message #87848] Fri, 28 February 2014 06:23 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris Torrence writes:

> 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

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.")
Re: Orientation of Contour Labels [message #87869 is a reply to message #87857] Fri, 28 February 2014 10:21 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, 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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: interpolate weirdness
Next Topic: Function graphics axis range - how to get it consistently?

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

Current Time: Wed Oct 08 15:14:53 PDT 2025

Total time taken to generate the page: 0.00494 seconds