frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setup();
XYAxis xAxis = frame.getXAxis();
XYAxis yAxis = frame.getYAxis();
final ScatterXYPlotLine line = new ScatterXYPlotLine(xAxis, yAxis);
GeneralPath pointShape = new GeneralPath();
pointShape.moveTo(-5, -5);
pointShape.lineTo(-5, 5);
pointShape.lineTo(5, 5);
pointShape.lineTo(5, -5);
pointShape.lineTo(-5, -5);
line.setPointFill(pointShape);
line.setForeground(Color.white);
final SimpleXYDataset d = new SimpleXYDataset(line);
d.setMaxCapacity(1000);
d.setXData(line.getXData());
d.setYData(line.getYData());
frame.addPlotLine(line);
yAxis.setStart(-10);
yAxis.setEnd(10);
xAxis.setStart(-10);