JavaPlot 0.5.0

JavaPlot is a library that can be used as a way to create gnuplot plots on the fly through pure Java commands.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in JavaPlot 0.5.0:

  • This release uses temporary files instead of pipes; improves compatibility with Windows.
Read full changelog
send us
an update
LICENSE TYPE:
LGPL (GNU Lesser General Public License) 
USER RATING:
2.7/5 18
DEVELOPED BY:
Panayotis Katsaloulis
HOMEPAGE:
sourceforge.net
CATEGORY:
ROOT \ Science and Engineering \ Visualization
JavaPlot is a library that can be used as a way to create gnuplot plots on the fly through pure Java commands. In contrast with other common gnuplot Java libraries, it uses Java structures to store the various plot parameters, including datasets.

Moreover, it is flexible enough to give special parameters to gnuplot, even if the library does not yet support it. JavaPlot software uses Java's Exceptions to inform the user if something went wrong.

Java 1.5 (or better) is needed for this library. The reason is the extensive usage of various 1.5 technologies, such as Generics and autoboxing, to help maipulation of plot data. It has been tested with gnuplot 4.2. Older versions might or might not work.

This library has been checked in Windows XP, Linux (Debian) and Mac OS X (Tiger & Leopard). It should work on any other system, if you fine tune the special parameters needed.

Usage:

First you have to include this library in your classpath. Then the easiest way to start creating plots, is to create a new instance of JavaPlot object.

A test case can be found under test/com/panayotis/gnuplot/GNUPlotTest.java. It needs JUnit4 to run, but you can safely copy&paste the ocde from this example to match your needs. For more detailed information, see the provided javadoc. Most methods should be self explanatory.

If you want to go deeper into the library, it is important to understand "ProeprtiesHolder" class, which is the base properties holder of this library. . This class is able to store pairs of values (such as key-value pairs). Use the set() and unset() method of this class to add parameters which will be used when creating the gnuplot program.

There are some things that are not supported yet. These are mainly the multiplot environment and splot-family commands. Still, using methods like getPreInit() and getPostInit() you might be able to simulate them.

If you want to use SVG output in Java, you need a library to handle SVG files. Such a library is SVGSalamander provided with this package. There is a bug in this library, though, which ignores color values. Thus all colors in SVG graphs are black.

Last updated on September 5th, 2008

requirements

#create gnuplot plots #Java commands #plot library #gnuplot #plots #Java #library

Add your review!

SUBMIT