--Alt-Boundary-19685.26154367
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Am 19 Jan 2006 um 10:39 hat Fabrizio Caruso geschrieben:
> I can't find a way to get rid of the legend
> when using on Maxima 5.9.2
> "plot2d([[discrete,....],[discrete,...],...])" nor can
> I find a way to show a larger coordinate system
> (the coordinate system is just sized as the highest coordinate
> and points with such coordinates are covered by the
> border of the coordinate system).
Hello Fabrizio,
a lot of help do you get, if you ask for
? plot_options;
I will give some examples.
(%i1) xy:makelist([x,sqrt(25.0-x*x)],x,-5,5)$
(%i2) xy: append( xy, makelist([x,-sqrt(25.0-x*x)],x,-5,5) )$
points on a circle defined.
(%i3) plot2d([discrete,xy],
[gnuplot_curve_styles,["with points"]],
[gnuplot_preamble,"set grid; set xtics 1; set size ratio -1; set xrange [-6:6]; set yrange [-6:6]; unset key"])$
essentially is the gnuplot_preamble. Syntax: [gnuplot_preamble,"cmd1;cmd2;cmd3;..."]
try to vary and leave out the commands and see what happens.
you can learn a lot about this commands by looking into the gnuplot help directly. this is
quite easy to read. the plot command in gnuplot is simply 'plot'. ask for 'plot' and you get
a lot of information.
with 'unset key' you get rid of the legend. if you want another legend, do the following:
(%i4) plot2d([discrete,xy],
[gnuplot_curve_titles,["title 'circle'"]],
[gnuplot_curve_styles,["with points"]],
[gnuplot_preamble,"set grid; set xtics; set size ratio -1; set xrange [-6:6]; set yrange [-6:6]"])$
gnuplot is a wonderful programm (good choice, that maxima uses it). nearly everything
is possible. formatting what you want. reading in files, recalculating data ....
i think it is the best to learn about all the plotting options to do that in gnuplot directly.
if you are able to read in german i can send you some more tutorial examples
cheers
Volker van Nek
--Alt-Boundary-19685.26154367
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 19 Jan 2006 um 10:39 hat Fabrizio Caruso geschrieben:</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> I can't find a way to get rid of the legend</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> when using on Maxima 5.9.2</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> "plot2d([[discrete,....],[discrete,...],...])" nor can</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> I find a way to show a larger coordinate system</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> (the coordinate system is just sized as the highest coordinate</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> and points with such coordinates are covered by the</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> border of the coordinate system).</span></font></div>
<div align="left"><br/></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Hello Fabrizio,</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">a lot of help do you get, if you ask for</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">? plot_options;</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">I will give some examples.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%i1) xy:makelist([x,sqrt(25.0-x*x)],x,-5,5)$</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%i2) xy: append( xy, makelist([x,-sqrt(25.0-x*x)],x,-5,5) )$</span></font></div>
<div align="left"><br/></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">points on a circle defined.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%i3) plot2d([discrete,xy],</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">[gnuplot_curve_styles,["with points"]],</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">[gnuplot_preamble,"set grid; set xtics 1; set size ratio -1; set xrange [-6:6]; set yrange [-6:6]; unset
key"])$</span></font></div>
<div align="left"><br/></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">essentially is the gnuplot_preamble. Syntax: [gnuplot_preamble,"cmd1;cmd2;cmd3;..."]</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">try to vary and leave out the commands and see what happens.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">you can learn a lot about this commands by looking into the gnuplot help directly. this is
quite easy to read. the plot command in gnuplot is simply 'plot'. ask for 'plot' and you get
a lot of information.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">with  'unset key'  you get rid of the legend. if you want another legend, do the following:   </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%i4) plot2d([discrete,xy],</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">[gnuplot_curve_titles,["title 'circle'"]],</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">[gnuplot_curve_styles,["with points"]],</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">[gnuplot_preamble,"set grid; set xtics; set size ratio -1; set xrange [-6:6]; set yrange [-6:6]"])$</span></font></div>
<div align="left"><br/></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">gnuplot is a wonderful programm (good choice, that maxima uses it). nearly everything
is possible. formatting what you want. reading in files, recalculating data ....</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">i think it is the best to learn about all the plotting options to do that in gnuplot directly. </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">if you are able to read in german i can send you some more tutorial examples </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">cheers</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"><br/>
</div>
<div align="left"><br/>
</div>
<div align="left"></div>
</body>
</html>
--Alt-Boundary-19685.26154367--