[Scilab-users] Circular contour plot

Rafael Guerra jrafaelbguerra at hotmail.com
Fri Apr 29 14:24:24 CEST 2016


Hello,
 
Is the following example ok?
 
t=-%pi:0.02:%pi;
M=sin(t)'*cos(t);
n=length(t);
r=2;  //radius
for i=1:n
    for j=1:n
        if sqrt(t(i)^2+t(j)^2)>r then M(i,j)=%nan; end
    end
end
clf();
Sgrayplot(t,t,M);
 
Otherwise, could you provide a sample of your pb script.
 
Regards,
Rafael
 
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Jens Simon
Strom
Sent: Friday, April 29, 2016 1:00 PM
To: International users mailing list for Scilab. <users at lists.scilab.org>
Subject: [Scilab-users] Circular contour plot
 
Hallo Scilab afficionados,
I would like to cut off all lines of a 2D contour plot which are outside of a
circle. I tried to set all external x and y  to %nan. This works however
partially spoils the plot inside the circle too. Polar organisation of the
x-y-points doesn't help either because x and y have to be monotone. Could anyone
give me a hint how to proceed here? 
Kind Regards
Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160429/4e061733/attachment.htm>


More information about the users mailing list