[Scilab-users] Plot Heart Curve in Scilab

Rafael Guerra jrafaelbguerra at hotmail.com
Thu Sep 28 09:54:31 CEST 2017


Hermes

For the second question, use email program with html format.

Regards
Rafael

________________________________
From: users <users-bounces at lists.scilab.org> on behalf of Hermes <herozigle at gmail.com>
Sent: Wednesday, September 27, 2017 10:28:55 PM
To: users at lists.scilab.org
Subject: Re: [Scilab-users] Plot Heart Curve in Scilab

Hi Rafa,
Here I present the task solved:
//start of code
nx=300;
ny=200;
X0=linspace(-1.2,1.2,nx);
Y0=linspace(-1.5,2,ny);
X=X0.*.ones(ny,1);
Y=(Y0.*.ones(nx,1))';
Z=(1.25*Y-sqrt(abs(X))).^2+X.^2-1;
clf()
a=gca();
a.x_label.text="X";
a.y_label.text="Y";
contour(X0,Y0,Z',[0,0]);
*Polyline=a.children.children(1)
Polyline.fill_mode="on";
Polyline.foreground=5;
Polyline.background=5;
Polyline.thickness=2;*
a.view="2d";
//end code

Two questions:
in the Helps of Scilab, where can I find the hierarchy trees for the graphic
objects?
How do I copy from SciNote to the Forum scripts and maintain the format of
it?
Thank you
Hermes



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170928/31e7ce3a/attachment.htm>


More information about the users mailing list