commands = ( ('axes', 'create a new axes'), ('axis', 'set or return the current axis limits'), ('bar', 'make a bar chart'), ('cla', 'clear the current axes'), ('clf', 'clear the current figure window'), ('close', 'close the current figure window'), ('cohere', 'make a plot of coherence'), ('csd', 'make a plot of cross spectral density'), ('errorbar', 'make an errorbar graph'), ('figure', 'create or change active figure'), ('fill', 'draw filled polygons'), ('gca', 'return the current axes'), ('gcf', 'return the current figure'), ('get', 'get a handle graphics property'), ('grid', 'set the axis grid lines on or off'), ('hist', 'make a histogram'), ('imshow', 'show an image'), ('legend', 'add a legend to the axes'), ('load', 'load ASCII data into an array'), ('loglog', 'a log log plot'), ('pcolor', 'generate pseudo color plots'), ('plot', 'make a line plot'), ('psd', 'make a plot of power spectral density'), ('save', 'save array as ASCII data array'), ('savefig', 'save the current figure'), ('scatter', 'make a scatter plot'), ('semilogx', 'log x axis'), ('semilogy', 'log y axis'), ('set', 'set a handle graphics property'), ('show', 'show the figures'), ('specgram', 'a spectrogram'), ('subplot', 'make a subplot (numrows, numcols, axesnum)'), ('table', 'add a table to the axes'), ('text', 'add some text at location x,y to the current axes'), ('title', 'add a title to the current axes'), ('xlabel', 'add an xlabel to the current axes'), ('ylabel', 'add a ylabel to the current axes'), ) @header@

Matplotlib

matplotlib is a python 2D plotting library which produces publication quality figures using in a variety of hardcopy formats (PNG, JPG, PS) and interactive GUI environments (WX, GTK, Tkinter) across platforms. matplotlib can be used in python scripts, interactively from the python shell (ala matlab or mathematica), in web application servers generating dynamic charts, or embedded in GTK, Tk or WX applications; see backends. All of the matplotlib backends can be used on linux, windows or Mac OS X.

matplotlib trys to make easy things easy and hard things possible. You can generate plots, histograms, power spectra, bar charts, errorcharts, scatterplots, etc, with just a few lines of code. For example, to make a histogram of data in x, you simply need to type

  >>> hist(x, 100)   # use 100 bins
  
For the power user, you have full control of line styles, font properties, axes properties, etc, via an object oriented interface or via a handle graphics interface familiar to matlab users. A summary of the goals of matplotlib and the progress so far can be found here.

The plotting functions in the matlab interface have a high degree of Matlab® compatibility.


+ for command, desc in commands: -

Plotting commands

FunctionDescription
@command@ @desc@
@footer@