private void addHistogramPlot(Color[] colors, double[][] xyzArray) {
    	double minXDiff = Double.NaN;
    	double minYDiff = Double.NaN;
    	double diff;
    	for (int i = 1; i < dataTable.getColumnCount() - 1; ++i) {
    		diff = Double.valueOf(dataTable.getValueAt(0, i + 1).toString()) - Double.valueOf(dataTable.getValueAt(0, i).toString());
    		if (diff < minXDiff || Double.isNaN(minXDiff))
    			minXDiff = diff;
    	}
    	for (int i = 1; i < dataTable.getRowCount() - 1; ++i) {
    		diff = Double.valueOf(dataTable.getValueAt(i + 1, 0).toString()) - Double.valueOf(dataTable.getValueAt(i, 0).toString());
    		if (diff < minYDiff || Double.isNaN(minYDiff))
    			minYDiff = diff;
    	}
        plot.addPlot(new HistogramPlot3D(dataColumn.getSelectedItemsString() + " " + statistics.getSelectedItem().toString(), colors, xyzArray, minXDiff, minYDiff));
    }