Beruflich Dokumente
Kultur Dokumente
http://maxima.sourceforge.net/maxima-gnuplot...
Espaol
Documentation
FAQ
Screen Shots
Download
Report Bugs
Maxima Developers' Site
Third Party Code
Related Projects
Lisp Links
Computer Algebra
Wiki
Mail Lists
1 din 8
09.11.2014 00:09
http://maxima.sourceforge.net/maxima-gnuplot...
plot2d(sin(x),[x,0,2*%pi],[gnuplot_term,ps],[gnuplot_out_file,"sin.eps"]);
1 ++--------+--$$$$$$$+---------+---------+---------+---------+--------++
+
$$$
$$$
+
+
+
SIN(x) $$$$$$ +
|
$$$
$$
|
|
$$
$$$
|
0.5 ++
$$
$$
++
|
$$
$$
|
| $$
$$
|
| $$
$$
|
|$$
$$
|
0 $+
$$
$$
++
|
$$
$$
|
|
$$
$$
|
|
$$
$$
|
-0.5 ++
$$
$$
++
|
$$
$
|
|
$$
$$
|
|
$$
$$$
|
+
+
+
+
+$$$$
+$$$
+
+
-1 ++--------+---------+---------+---------+---$$$$$$$---------+--------++
0
1
2
3
4
5
6
7
Those of us who remember when vt100 was not just a menu item in a terminal editor, but an actual thing that
would hurt to drop on your foot, should find the following picture nostalgic.
2 din 8
09.11.2014 00:09
http://maxima.sourceforge.net/maxima-gnuplot...
It is now possible to take advantage of the advanced features of Gnuplot. Note the tick labels on the horizontal
axis in the following figure.
plot2d([cos(x),sin(x),tan(x),cot(x)],[x,-2*%pi,2*%pi],[y,-2,2],
[gnuplot_preamble,"set xzeroaxis; set xtics ('-2pi' -6.283, '-3pi/2' -4.712,
3 din 8
09.11.2014 00:09
http://maxima.sourceforge.net/maxima-gnuplot...
The postscript version of the previous figure can take advantage of Gnuplot's enhanced postscript terminal.
plot2d([cos(x),sin(x),tan(x)],[x,-2*%pi,2*%pi],[y,-2,2],
[gnuplot_preamble,"set xzeroaxis; set xtics ('-2{/Symbol p}' -6.283,
'-3{/Symbol p}/2' -4.712, '-{/Symbol p}' -3.1415, '-{/Symbol p}/2' -1.5708,
'0' 0,'{/Symbol p}/2' 1.5708, '{/Symbol p}' 3.1415,'3{/Symbol p}/2' 4.712,
'2{/Symbol p}' 6.283)"],[gnuplot_term,ps],[gnuplot_out_file,"trig.eps"]);
4 din 8
09.11.2014 00:09
http://maxima.sourceforge.net/maxima-gnuplot...
5 din 8
09.11.2014 00:09
http://maxima.sourceforge.net/maxima-gnuplot...
Several variations are possible. Here is one with no mesh and contours on at the base.
plot3d(atan(-x^2+y^3/4),[x,-4,4],[y,-4,4],[grid,50,50],[gnuplot_pm3d,true],
[gnuplot_preamble,"set pm3d at s;unset surface;set contour;set cntrparam levels
20;unset key"]);
The following variation includes the mesh and puts the colors on the base.
6 din 8
09.11.2014 00:09
http://maxima.sourceforge.net/maxima-gnuplot...
plot3d(atan(-x^2+y^3/4),[x,-4,4],[y,-4,4],[grid,50,50],[gnuplot_pm3d,true],
[gnuplot_preamble,"set pm3d at b"]);
However, the above function can be effectively visualized using pm3d's map view.
7 din 8
09.11.2014 00:09
http://maxima.sourceforge.net/maxima-gnuplot...
plot3d(cos(-x^2+y^3/4),[x,-4,4],[y,-4,4],
[gnuplot_preamble,"set view map; unset surface"],
[gnuplot_pm3d,true],[grid,150,150]);
8 din 8
09.11.2014 00:09