series1.add(-r.getDepth(i), r.getLimitPressure(i));
}
XYSeriesCollection dataset = new XYSeriesCollection(series1);
JFreeChart chart = ChartFactory.createXYLineChart("ABS Limit Pressure", "Depth (m)", "ABS Limit Pressure (kPa)", dataset, PlotOrientation.HORIZONTAL, true, true, false);
XYPlot plot = (XYPlot) chart.getPlot();
plot.setAxisOffset(new RectangleInsets(2.0, 2.0, 2.0, 2.0));
XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
renderer.setShapesVisible(true);
plot.setBackgroundPaint(Color.WHITE);
plot.setRangeGridlinePaint(Color.GRAY);
plot.setDomainGridlinePaint(Color.GRAY);