public class PlotUtil extends Object
| 构造器 | 说明 |
|---|---|
PlotUtil() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Chart |
createScatterPlot(String title,
String xAxisLabel,
String yAxisLabel,
XYDataset dataset) |
Create scatter plot
|
static void |
exportToPicture(String fileName,
Chart chart,
int width,
int height) |
Save chart as PNG image file
|
static XYDataset |
getXYDataset(StationData xdata,
StationData ydata,
String seriesKey) |
Get XYDataset from two StationData
|
public static XYDataset getXYDataset(StationData xdata, StationData ydata, String seriesKey)
xdata - X station dataydata - Y station dataseriesKey - Series keypublic static Chart createScatterPlot(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset)
title - TitlexAxisLabel - X axis labelyAxisLabel - Y axis labeldataset - XYDatasetpublic static void exportToPicture(String fileName, Chart chart, int width, int height) throws FileNotFoundException, InterruptedException
fileName - The file namechart - The chartwidth - Widthheight - HeigthFileNotFoundExceptionInterruptedExceptionCopyright © 2019. All rights reserved.