gcontour

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
Ken-Cogger
Posts: 13
Joined: Wed Feb 15, 2012 7:58 pm

gcontour

Unread post by Ken-Cogger »

gcontour(x=a,y=b,f=c) does not work if a, b, and c contain NA values.
Can anyone suggest a solution?
Sample code stores c(i,j)=i*j only for j>i:

declare vector a(5)
declare vector b(5)
declare rectangular c(5,5)
do i=1,4
do j=i+1,5
compute a(i)=i
compute b(j)=j
compute c(i,j)=i*j
end do j
end do i
gcountour(x=a,y =b,f=c)

Best wishes,
Ken.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: gcontour

Unread post by TomDoan »

Your F matrix can have missing values, but X and Y vectors have to provide a full grid.
Ken-Cogger
Posts: 13
Joined: Wed Feb 15, 2012 7:58 pm

Re: gcontour

Unread post by Ken-Cogger »

Thanks Tom,
I have found that axis=none in gcontour still produces a horizontal line at y=0.
How can that line be eliminated?
I want to produce, with vgrid and hgrid, only the axis values corresponding to a max or min value of f.
Thanks,
Ken.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: gcontour

Unread post by TomDoan »

We have a fix for that in our test release.
Post Reply