Yapso 0.3.2

Yapso is a plotting module for GNU Octave. It is an alternative to gnuplot.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!
send us
an update
GPL (GNU General Public License) 
3.3/5 23
ROOT \ Science and Engineering \ Visualization
Yapso is a plotting module for GNU Octave. It is an alternative to gnuplot. It is intended to be compatible with Matlab plotting commands. Yapso is based on the OpenGL libraries. Currently it uses the GLUT toolkit (freeglut or openglut). Yapso is loaded dynamically in Octave as oct-functions which allows a tight integration in Octave.

Yapso program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Here are some key features of "Yapso":

2D plotting functions: plot, patch, pcolor, text, quiver, contourf, scatter, image
3D plotting functions: surf, plot3, text3, scatter3
Some graphics handling support
PNG, PPM (uncompressed bitmap) and EPS output
Off-screen rendering, i.e. you can create figures from a cronjob or web server without connection to an X server
Support for animation using ImageMagick


octave (2.9.13 or higher)
OpenGL (GL and GLU) libraries
freeglut or openglut
PNG libraries
geometry package from octave-forge


Automatic installation

In octave, issue the following commands from the directory containing the tar.gz-file:

octave:1> pkg install -verbose yapso-0.3.2.tar.gz

You should see no errors. If you see an error message that an installed library could not be found, you will need to specify the location of the library by setting the environment variables CPPFLAGS and LDFLAGS before starting octave, for example:

export CPPFLAGS=-I/usr/X11R6/include
export LDFLAGS=-L/usr/X11R6/lib

Since Yapso replaces some functionality provided by octave, it is not loaded by default. The following command loads Yapso:

pkg load yapso

You can add "pkg load yapso" to your $HOME/.octaverc to loads Yapso automatically when octave starts. To tests if Yapso is installed correctly, issue the following command in octave:

octave:2> yapso_demo

By default, octave installs packages in your home directory. If you want to install Yapso globally, you have to launch octave as the root user (the environment variable USER must be set to root) or use.

octave:1> pkg install -global yapso-0.3.2.tar.gz

If you want to return to gnuplot in your current session, you need only to unload Yapso:

pkg unload yapso

Manual installation

Sometimes, you might need to install Yapso manually. These are the commands that you need to execute:

tar zxvf yapso-0.3.2.tar.gz
cd yapso-0.3.2/src
mkdir /path/to/install/dir/yapso-0.3.2
cp *.oct ../inst/*.m ../PKG_ADD ../PKG_DEL /path/to/install/dir/yapso-0.3.2

In octave, you have to include Yapso in your search path by using addpath:


At this point you should see "Yapso initialized". If you need to install Yapso manually, please let me know, why the automatic installation did not work for you (send an email to yapso-help@lists.sourceforge.net).

Last updated on November 16th, 2007

#GNU Octave #plotting module #Matlab plotting #Octave #plotting #module #gnuplot

Add your review!