Java Code Examples for de.erichseifert.gral.plots.XYPlot#setAreaRenderer()
The following examples show how to use
de.erichseifert.gral.plots.XYPlot#setAreaRenderer() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AreaPlot.java From Java-Data-Science-Cookbook with MIT License | 5 votes |
private static void formatFilledArea(XYPlot plot, DataSource data, Color color) { PointRenderer point = new DefaultPointRenderer2D(); point.setColor(color); plot.setPointRenderer(data, point); LineRenderer line = new DefaultLineRenderer2D(); line.setColor(color); line.setGap(3.0); line.setGapRounded(true); plot.setLineRenderer(data, line); AreaRenderer area = new DefaultAreaRenderer2D(); area.setColor(GraphicsUtils.deriveWithAlpha(color, 64)); plot.setAreaRenderer(data, area); }
Example 2
Source File: AreaPlot.java From Java-Data-Science-Cookbook with MIT License | 5 votes |
private static void formatLineArea(XYPlot plot, DataSource data, Color color) { PointRenderer point = new DefaultPointRenderer2D(); point.setColor(color); plot.setPointRenderer(data, point); plot.setLineRenderer(data, null); AreaRenderer area = new LineAreaRenderer2D(); area.setGap(3.0); area.setColor(color); plot.setAreaRenderer(data, area); }