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