<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Heinz,<br>
<br>
Le 24/03/2019 à 16:18, Heinz Nabielek a écrit :<br>
</div>
<blockquote cite="mid:096416C5-2759-4B41-82C9-8F677D8A4E0D@me.com"
type="cite">
<pre wrap="">First polarplot problem was to put 0 on top and 90° to the right. This problem was solved by Federico using gca().rotation_angles = [180 0]
x = (0:360)/180*%pi;
y = 0.5*(1 + cos(x));
polarplot(x, y)
gca().rotation_angles = [180 0]</pre>
</blockquote>
<br>
Yes, this is the trick. It work since Scilab 6.0.2. Before, labels
were shifted when rotating the axes. This was recently corrected in
order to use this trick. <a
href="http://bugzilla.scilab.org/show_bug.cgi?id=5693">It is now
being documented</a>.<br>
<br>
<blockquote cite="mid:096416C5-2759-4B41-82C9-8F677D8A4E0D@me.com"
type="cite">
<pre wrap="">______
Second problem:
</pre>
<blockquote type="cite">
<pre wrap="">plot several curves in polar mode is to use matrices as input, as for the plot() and plot2d() functions
</pre>
</blockquote>
<pre wrap="">
does not work....
x = (0:360)'/180*%pi;
z=[(0.5*(1 + cos(x))) (0.5+(1 + cos(x)))];
polarplot(x,z);
produces the ERROR MESSAGE
</pre>
<blockquote type="cite">
<pre wrap="">at line 18 of function polarplot ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/graphics/macros/polarplot.sci line 31 )
Inconsistent row/column dimensions.</pre>
</blockquote>
</blockquote>
<br>
To be reported. This occurs since the first ages of Scilab. This
clearly deserves to be fixed.<br>
The behavior should be the plot() and plot2d() one.<br>
<br>
As a workaround before Scilab 6.1.0, the following code may be used:<br>
<pre wrap="">x = (0:360)'/180*%pi;
z = [(0.5*(1 + cos(x))) (0.5+(1 + cos(x)))];
polarplot(x*ones(z(1,:)), z)
<img src="cid:part2.4A3A4F0E.A8343ABC@free.fr" alt="" height="209" width="212">
Samuel
</pre>
</body></html>