Re: GDL contour fill [message #52924] |
Mon, 05 March 2007 14:19 |
anonymous.myspamfilte
Messages: 2 Registered: March 2007
|
Junior Member |
|
|
On 5 Mar, 22:13, anonymous.myspamfil...@googlemail.com wrote:
> Hi
>
> I have recently installed gdl on Linux and, although I thought the
> installation went OK (including prerequisites), when I try to fill a
> contour plot I get the error:
> "Keyword parameter FILL not allowed in call to: CONTOUR"
> which is a bit of a mystery to me. The simple test routine I'm using
> is contained below. If I run it without the fill keyword it works
> fine producing the isopleths as expected. This is my first try at
> using gdl (I more regularly use pvwave), so there may be other things
> that don't work as I expect.
>
> Can anyone shed any light on the likely cause of my problem?
>
> many thanks
>
> Ben
>
> <--- Sample code --->
>
> PRO test
>
> x=findgen(101)/10.
> y=sin(x)
> nx=n_elements(x)
> ny=n_elements(y)
> z=make_array(nx,ny)
> FOR i=1,nx-1 DO BEGIN
> FOR j=1,ny-1 DO BEGIN
> z(i,j)=exp(-(.1*x(i)^2+y(j)^2))
> ENDFOR
> ENDFOR
>
> levels=5
> contour, z,x,y
>
> END
Sorry, this is the version without the fill keyword. This should have
read
> contour, z,x,y, /fill
Ben
|
|
|