Ptplot 2.0 - Java Plotter

Screenshot of PtPlot applet plotting a FourierSeries Authors
Edward A. Lee
Christopher Hylands

Contributors
Lukito Muliadi
William Wu


  • Applet Demonstrations
  • The Java documentation for these classes
  • Download sources, .class files and demos: 450k Gzipped Tar File - 624k Compressed Zip File
  • Download only the .class files: 80k Jar file for both applets and standalone applications - 42k Jar file for applets only -
  • Miscellaneous Ptplot documentation, including the Ptplot faq, instructions on joining the ptplot-announce mailing list and the list of Ptplot Changes.

  • Description

    This is a set of two dimensional signal plotters components written in Java with the following properties: The applet implementation can read data to plot from a URL or construct the data in custom Java code. One of the supplied application classes can read data from a URL and use command-line arguments to format the plot. The command-line arguments are compatible with the popular Unix signal plotter xgraph.

    There is a set of demonstrations of these classes. The main class implementing the plotter component is Plot. It is derived from PlotBox, which provides only the axes and decorations of the plot. This is implemented in a base class so that it can be reused for different kinds of plots. Live (animated) data plots are supported by the PlotLive class. This class is abstract; a derived class must be created to generate the data to plot (or collect it from some other application).

    TwoPlotExample is a very simple sample Ptplot application.

    A more complex application is implemented by the PlotApplication class. The PlotApplication class includes support for printing and generating HTML for use with the Plot applet. The ptplot shell script starts up PlotApplication from a Unix shell prompt.

    Backward compatibility with the C pxgraph program is provided by the Pxgraph class.

    This code owes a heavy debt to David Harrison, the original author of xgraph, which runs under the X window system on Unix platforms. An extension to xgraph called pxgraph, written by Joe Buck, reads binary files as well as ASCII. For compatibility with these programs, we have provided a Bourne Shell script called pxgraph that is a drop-in replacement for either xgraph or pxgraph. Unlike the original program, however, the Java implementation does not depend on the X window system. We have provided a DOS batch file called pxgraph.bat that brings pxgraph capability to Windows platforms.


    Up to the Ptolemy Java Website - Forward to the Demonstrations
    Copyright © 1997-1998 The Regents of the University of California. All rights reserved.
    Last updated: $Date: 1998/11/20 03:52:20 $, comments to: ptplot@eecs.berkeley.edu
    Ptolemy Java Ptplot Website: http://ptolemy.eecs.berkeley.edu/java/ptplot