Text in GCONTOUR

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
jonasdovern
Posts: 97
Joined: Sat Apr 11, 2009 10:30 am

Text in GCONTOUR

Unread post by jonasdovern »

I tried to draw some markers into a contour plot using the following code:

Code: Select all

all 200

comp xgrid = %seqa(-3,.01,601)
comp ygrid = %seqa(-3,.01,601)

decl rec f(601,601)
ewise f(i,j) = 1./((2*%pi)*%det(||1,.9|.9,1||)^.5)*exp(%scalar(-1*tr(||xgrid(i)|ygrid(j)||)*inv(||1,.9|.9,1||)*(||xgrid(i)|ygrid(j)||)/2))


spgraph(hfi=1,vfi=1)
   gcontour(x=xgrid,y=ygrid,f=f,number=10)
   grtext(x=-2,y=-2,notransperent) "X"
   grtext(x=-2,y=2,notransperent) "X"
   grtext(x=2,y=-2,notransperent) "X"
   grtext(x=2,y=2,notransperent) "X"
spgraph(done)
However, RATS seems to always use x=0 to draw the text fields (see attached graph). What is it that I am missing?
Attachments
GCONTOUR_example.RGF
(231.71 KiB) Downloaded 877 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Text in GCONTOUR

Unread post by TomDoan »

That's a bug that was fixed with version 9.
jonasdovern
Posts: 97
Joined: Sat Apr 11, 2009 10:30 am

Re: Text in GCONTOUR

Unread post by jonasdovern »

Thanks, Tom. I am using RATS 8.3 and did not know that.
Post Reply