private JFreeChart createContourPlot() { String title = Settings.getProjectName(); String xAxisLabel = I18n.tr("Date"); String yAxisLabel = I18n.tr("Modules"); String zAxisLabel = I18n.tr("Commit Activity (%)"); xAxis = new DateAxis(xAxisLabel); // xAxis = new HorizontalNumberAxis(xAxisLabel); List dirs = content.getDirectories(); String[] ax = new String[dirs.size()]; for (int i = 0; i < dirs.size(); i++) { ax[i] = (String) ((Directory) dirs.get(i)).getPath(); } yAxis = new AlignedVerticalSymbolicAxis(yAxisLabel, ax); zAxis = new ColorBar(zAxisLabel); // yAxis.setAutoRangeIncludesZero(false); // zAxis.setAutoRangeIncludesZero(false); yAxis.setInverted(true); yAxis.setLowerMargin(0.0); yAxis.setUpperMargin(0.0); // zAxis.setInverted(false); // zAxis.setTickMarksVisible(true); ContourDataset data = createDataset(); ContourPlot plot = new ContourPlot(data, xAxis, yAxis, zAxis); // plot.setRenderAsPoints(true); ratio = Math.abs(ratio); // don't use plot units for ratios when x axis is date plot.setDataAreaRatio(ratio); return new JFreeChart(title, null, plot, false); }