Skip to content
Snippets Groups Projects
Commit ab86dc59 authored by Jürgen Walter's avatar Jürgen Walter
Browse files

Minor improvement boxplott visualization in PAVO

parent e65aa86c
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.renderer.category.BoxAndWhiskerRenderer;
import org.jfree.data.Range;
import org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset;
import tools.descartes.pavo.controller.VisualizationController;
......@@ -84,6 +85,9 @@ public class BoxPlot extends AbstractVisualizationType implements IVisualization
plot.setRangeGridlinePaint(Color.lightGray);
plot.setDomainGridlinePaint(Color.lightGray);
NumberAxis axis = ((NumberAxis)plot.getRangeAxis());
axis.setRange(new Range(0, axis.getRange().getUpperBound()*1.4));
axis.setUpperBound(axis.getRange().getUpperBound()*1.4);
return chart;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment