Line fill in function graphics [message #89287] |
Thu, 14 August 2014 06:28  |
andeh
Messages: 23 Registered: April 2011
|
Junior Member |
|
|
Hello everybody,
In the old graphics system, one could create line fills using the POLYFILL command. e.g.
IDL> PLOT, [0,3], [0,3], /NODATA
IDL> POLYFILL, [1,2,2,1,1], [1,1,2,2,1], /LINE_FILL, ORIENTATION=45
I can't find a way to replicate this in function graphics. I'd imagine I've missed something obvious? The closest I can come is the POLYGON command, but this distorts colours underneath. e.g.
IDL> p0 = PLOT( [0,3], [0,3], /NODATA )
IDL> p1 = POLYGON( [1,2,2,1,1], [1,1,2,2,1], /DATA, /CURRENT,/FILL_BACKGROUND, FILL_COLOR='Blue', TRANSPARENCY=90)
Can anyone suggest an alternative other than drawing an enormous number of lines manually?!
Thanks,
Andy
|
|
|
Re: Line fill in function graphics [message #89324 is a reply to message #89287] |
Mon, 18 August 2014 01:57  |
andeh
Messages: 23 Registered: April 2011
|
Junior Member |
|
|
I have found the answer!
IDL> p2 = POLYGON([1,2,2,1,1],[1,1,2,2,1],/DATA,/CURRENT,FILL_COLOR='B lack', $
FILL_PATTERN=OBJ_NEW('IDLgrPattern', 1, ORIENTATION=45, SPACING=10) )
|
|
|