[Maxima] Plot parametric 3D curves

van Nek van.Nek at gmx.net
Mon Mar 20 16:28:09 CST 2006


--Alt-Boundary-22283.27789949
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

Am 20 Mar 2006 um 10:41 hat johan.ekh at se.abb.com geschrieben:

> 
> 
> Hello everybody, 
> I'm new to this list and I have a simple question regarding plotting. 
> 
> How can I plot parametric 3D curves in Maxima (using gnuplot)? 
> 
> For instance, I'm interested in plotting a Helix using the arclength "s" as the parameter. 
> 
> Best regards, 
> Johan 
> 



Hello Johan,

for 3d parametric functions you have to use gnuplot instead of Maxima (or am I 
wrong?).

Try this, perhaps you like it.

First some preambles. Nice, but not necessary:
gnuplot> set size ratio -1
gnuplot> set ticslevel 0
gnuplot> set grid
gnuplot> set xtics 0.5
gnuplot> set ytics 0.5

Now we plot:
gnuplot> set parametric

        dummy variable is t for curves, u/v for surfaces
gnuplot> splot [t=0:6*pi] cos(t),sin(t),t

Hope that helps.

Volker van Nek


--Alt-Boundary-22283.27789949
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

<?xml  version="1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">Am 20 Mar 2006 um 10:41 hat johan.ekh at se.abb.com geschrieben:</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; Hello everybody, </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; I'm new to this list and I have a simple question regarding plotting. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; How can I plot parametric 3D curves in Maxima (using gnuplot)? </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; For instance, I'm interested in plotting a Helix using the arclength &quot;s&quot; as 
the parameter. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; Best regards, </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; Johan </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">&gt; </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><br/>
</div>
<div align="left"><br/></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Hello Johan,</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">for 3d parametric functions you have to use gnuplot instead of Maxima (or am I 
wrong?).</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Try this, perhaps you like it.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">First some preambles. Nice, but not necessary:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot&gt; set size ratio -1</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot&gt; set ticslevel 0</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot&gt; set grid</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot&gt; set xtics 0.5</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot&gt; set ytics 0.5</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Now we plot:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot&gt; set parametric</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&#160;&#160;&#160;&#160;&#160;&#160;&#160; dummy variable is t for curves, u/v for surfaces</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot&gt; splot [t=0:6*pi] cos(t),sin(t),t</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Hope that helps.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Volker van Nek</span></font></div>
<div align="left"></div>
</body>
</html>

--Alt-Boundary-22283.27789949--




More information about the Maxima mailing list