Folks,
I am trying to use a contour fill pattern (C_FILL_PATTERN
keyword) in a function Contour command. Here is the program.
Any idea why I am getting a solid fill? You can see that
the pattern object I create it correct, because I can display
it as the pattern of a polygon object in XObjView.
pat = [ $
[003B, 000B, 000B, 128B], $
[006B, 000B, 000B, 128B], $
[028B, 000B, 000B, 128B], $
[048B, 000B, 000B, 192B], $
[096B, 000B, 000B, 096B], $
[128B, 000B, 000B, 032B], $
[000B, 003B, 000B, 048B], $
[000B, 006B, 000B, 024B], $
[000B, 012B, 000B, 008B], $
[000B, 016B, 000B, 008B], $
[000B, 096B, 000B, 004B], $
[000B, 192B, 000B, 004B], $
[000B, 128B, 001B, 002B], $
[000B, 000B, 003B, 003B], $
[000B, 000B, 006B, 001B], $
[000B, 000B, 140B, 001B], $
[000B, 000B, 216B, 000B], $
[000B, 000B, 080B, 000B], $
[000B, 000B, 112B, 000B], $
[000B, 000B, 112B, 000B], $
[000B, 000B, 080B, 000B], $
[000B, 000B, 200B, 000B], $
[000B, 000B, 140B, 000B], $
[000B, 000B, 134B, 001B], $
[000B, 000B, 001B, 003B], $
[000B, 192B, 000B, 006B], $
[000B, 096B, 000B, 012B], $
[000B, 024B, 000B, 024B], $
[000B, 014B, 000B, 032B], $
[128B, 003B, 000B, 096B], $
[240B, 000B, 000B, 064B], $
[030B, 000B, 000B, 192B] $
]
pattern = Obj_New('idlgrpattern', 2, PATTERN=pat)
square = OBJ_NEW('IDLgrPolygon', $
[[0,0],[1,0],[1,1],[0,1]], $
FILL_PATTERN=pattern)
c = contour(cgdemodata(2), C_VALUE=[250,750], $
C_FILL_PATTERN=pattern, /FILL)
xobjview, square
END
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.")
|