Next: , Previous: , Up: draw   [Contents][Index]

53.1 Introduction to draw

draw is a Maxima-Gnuplot and a Maxima-vtk interface.

There are three main functions to be used at Maxima level:

Each scene can contain any number of objects and key=value pairs with options for the scene or the following objects.

A selection of useful objects a scene can be made up from are:

A short description of all draw commands and options including example plots (in the html and pdf version of this manual) can be found in the section See Functions and Variables for draw. An online version of the html manual can be found at maxima.sourceforge.net/docs/manual/maxima_singlepage.html#draw. More elaborated examples of this package can be found at the following locations:

http://tecnostats.net/Maxima/gnuplot
http://tecnostats.net/Maxima/vtk

Example:

(%i1) draw2d(
          title="Two simple plots",
          xlabel="x",ylabel="y",grid=true,

          color=red,key="A sinus",
          explicit(sin(x),x,1,10),
          color=blue,line_type=dots,key="A cosinus",
          explicit(cos(x),x,1,10)
)$
figures/draw_intro

You need Gnuplot 4.2 or newer to run draw; If you are using wxMaxima as a front end wxdraw, wxdraw2d and wxdraw3d are drop-in replacements for draw that do the same as draw, draw2d and draw3d but embed the resulting plot in the worksheet.

Categories:  Plotting Share packages Package draw


Next: , Previous: , Up: draw   [Contents][Index]