import jas.hist.*;
import javax.swing.*;

public class OverlayExample	extends	JFrame
{
	OverlayExample()
	{
		super("Overlay Example");
		JASHist	plot = new JASHist();
		
		double[] data1 = { 0, 1, 3,	5, 7, 9, 11, 13, 5,	0 };
		double[] data2 = { 0, 1, 2,	3, 4, 5, 6,	7, 3, 0	};
		
		plot.addData(new ArrayDataSource(data1,"Data 1")).show(true);
		plot.addData(new ArrayDataSource(data2,"Data 2")).show(true);
		
		getContentPane().add(plot);
		setSize(400,400);
		show();
	}
	public static void main(String[] argv)
	{
		new	OverlayExample();
	}
}
