Back to demo index

Plot2D demo

This demo illustrates the use of the Plot2D widget by drawing random data. The Plot2D widget extends ZoomPane and inherits its zoom capabilities.

Widget javadoc: Plot2D
How to use: Use the keyboard (Page Up or Page Down) or the mouse wheel for zooming. Use the scrollbars or the keyboard for translating. Right click and select the "Show magnifier" option for testing the magnifier.
How to make your own: Create an instance of Plot2D. Define the axis labels with the add[X|Y]Axis(String) methods. Finally invoke the addSeries(label, color, x, y) method or one of its variants.
Prerequites:
  • Java 6
  • Firefox 3 on Linux or Windows, or Internet Explorer on Windows (there is known issues with Safari, Opera and Firefox on MacOS)