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

Home » Public Forums » archive » Re: Contour Function Pattern Broken?
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
Re: Contour Function Pattern Broken? [message #78212] Thu, 03 November 2011 12:38 Go to next message
bill.dman is currently offline  bill.dman
Messages: 17
Registered: June 2007
Junior Member
It worked for me when I changed the C_FILL_PATTERN argument to an
array like this:
c=contour( ... C_FILL_PATTERN = [pattern] ... )

It's a case where you have to read the documentation quite literally.

C_FILL_PATTERN
Set this property to an array of IDLgrPattern objects representing the
patterns to be applied at each contour level if the FILL property is
non-zero. If there are more contour levels than fill patterns, the
patterns will be cyclically repeated. If this property is set to 0,
all contour levels are filled with a solid color (this is the
default).
Re: Contour Function Pattern Broken? [message #78213 is a reply to message #78212] Thu, 03 November 2011 12:50 Go to previous messageGo to next message
bill.dman is currently offline  bill.dman
Messages: 17
Registered: June 2007
Junior Member
Hi David,

Your example works for me if the C_FILL_PATTERN is passed as an array
like this:
...contour( ... C_FILL_PATTERN= [pattern] ...)

Looks like the documentation on the keyword parm must be taken quite
literally.

-Bill
Re: Contour Function Pattern Broken? [message #78305 is a reply to message #78213] Thu, 03 November 2011 14:14 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
BD writes:

> Your example works for me if the C_FILL_PATTERN is passed as an array
> like this:
> ...contour( ... C_FILL_PATTERN= [pattern] ...)
>
> Looks like the documentation on the keyword parm must be taken quite
> literally.

Humm. Thanks. This is going to be hard for me after
years of reading the IDL documentation as allegory. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Contour Function Pattern Broken? [message #78313 is a reply to message #78305] Sun, 13 November 2011 15:05 Go to previous messageGo to next message
Richard French is currently offline  Richard French
Messages: 173
Registered: December 2000
Senior Member
>
> Humm. Thanks. This is going to be hard for me after
> years of reading the IDL documentation as allegory. :-)

Reminds me red lights in Boston being "suggestions".
Re: Contour Function Pattern Broken? [message #78405 is a reply to message #78212] Mon, 14 November 2011 10:35 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi all,

This was actually a bug in IDLgrContour:

...
square = OBJ_NEW('IDLgrContour', $
dist(100), /FILL, $
C_FILL_PATTERN=pattern)
xobjview, square

It's fixed for IDL 8.2. You can now specify a scalar object.

-Chris
Exelis VIS
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Coyote Tex
Next Topic: IDLDoc Markup

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

Current Time: Wed Oct 08 11:41:10 PDT 2025

Total time taken to generate the page: 0.00644 seconds