Jump to: navigation, search
Image:sample2_small.png Image:sample3_small.png Image:sample7_small.png Image:sample5_small.png

S2PLOT: A Three-Dimensional Plotting Library

S2PLOT is an advanced three-dimensional plotting library with support for standard and enhanced display devices. The S2PLOT library was written in C and can be used with C, C++ and FORTRAN programs on GNU/Linux and Apple/OSX. The S2PLOT architecture supports dynamic geometry and can be used to plot both static and time-evolving data sets. S2PLOT is based on the OpenGL graphics library.

With a programming interface inspired by PGPLOT, S2PLOT provides researchers with elegant techniques for displaying and interactively exploring 3D data sets directly from their program code.

Announcement: Version 3.2.1 is now available for download and testing (November 2012).
This latest version of S2PLOT is the first to be released through the GNU GPL, and needs to be compiled on your local system.
Please follow all instructions in the INSTALL.TXT file that accompanies the source distribution.
Announcement: Thank you to Tom Marsh for providing updated Python wrappers. (March 2014)
You can access these on: github.
Sample code: How to create and display spherical coordinate grids.
Howto: How to embed S2PLOT visualisations in PDF Documents and on the Web with Flash.

This website provides the main source of information on obtaining, installing and programming with S2PLOT.

groups_bar.gif Visit the S2PLOT Google Group

Image:Ogl_sm.jpg Built on top of OpenGL


Nicholas Jones is acknowledged for providing the S2PLOT Python module.

Matthew Turk is acknowledged for updating the S2PLOT Python module to correspond to S2PLOT version 2.4.

Tom Marsh is acknoweldged for updating the S2PLOT Python module to correspond to S2PLOT version 3.2.1.


S2PLOT 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 3 of the License, or (at your option) any later version.The programming library and sample codes are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

We would appreciate it if research outcomes using S2PLOT would provide the following acknowledgement:

Three-dimensional visualisation was conducted with the S2PLOT progamming library

and a reference to

D.G.Barnes, C.J.Fluke, P.D.Bourke & O.T.Parry, 2006, Publications of the Astronomical Society of Australia, 23(2), 82-93.

The initial S2PLOT development was funded through the Researcher Developer Grant Scheme at Swinburne University of Technology.

Personal tools