scale.add(minZ + increments * 3, Color.YELLOW);
scale.add(minZ + increments * 4, Color.ORANGE);
scale.add(minZ + increments * 5, Color.RED);
renderer.setPaintScale(scale);
NumberAxis xAxis = new NumberAxis(model.getDomainType().toString());
xAxis.setLowerBound(minDomain);
xAxis.setUpperBound(maxDomain);
NumberAxis yAxis = new NumberAxis(model.getRangeType().toString());
XYPlot plot = new XYPlot(model, xAxis, yAxis, renderer);
plot.setBackgroundPaint(Color.white);
plot.setDomainGridlinesVisible(false);
plot.setRangeGridlinePaint(Color.white);
plot.setRangeGridlinesVisible(false);
plot.setDomainCrosshairVisible(true);
plot.setRangeCrosshairVisible(true);
plot.setDomainCrosshairValue(0);
plot.setRangeCrosshairValue(0);
plot.setAxisOffset(new RectangleInsets(5, 5, 5, 5));
plot.setOutlinePaint(Color.blue);
JFreeChart chart = new JFreeChart(plot);
NumberAxis scaleAxis = new NumberAxis(model.getZType().toString());
scaleAxis.setAxisLinePaint(Color.white);
scaleAxis.setTickMarkPaint(Color.white);
scaleAxis.setTickLabelFont(new Font("Dialog", Font.PLAIN, 7));
PaintScaleLegend legend = new PaintScaleLegend(scale, scaleAxis);
legend.setStripOutlineVisible(false);
legend.setSubdivisionCount(20);
legend.setAxisLocation(AxisLocation.BOTTOM_OR_LEFT);