Package htw.ai.dln.utils
Class Plot
- java.lang.Object
-
- htw.ai.dln.utils.Plot
-
public class Plot extends java.lang.Object
Simple implementation of plot. Minimal features, no dependencies besides standard libraries. Options are self-descriptive, see also samples.- Author:
- Yuriy Guskov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Plot.AxisFormat
static class
Plot.AxisOptions
static class
Plot.Data
class
Plot.DataSeries
static class
Plot.DataSeriesOptions
static class
Plot.LegendFormat
static class
Plot.Line
static class
Plot.Marker
static class
Plot.PlotOptions
static class
Plot.Range
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Plot.AxisOptions
axisOpts()
static Plot.Data
data()
static java.lang.String
formatDouble(double d, Plot.AxisFormat format)
Plot.PlotOptions
opts()
static Plot
plot(Plot.PlotOptions opts)
static Plot.PlotOptions
plotOpts()
void
save(java.lang.String fileName, java.lang.String type)
Plot
series(java.lang.String name, Plot.Data data, Plot.DataSeriesOptions opts)
Plot
series(java.lang.String name, Plot.DataSeriesOptions opts)
static Plot.DataSeriesOptions
seriesOpts()
Plot
xAxis(java.lang.String name, Plot.AxisOptions opts)
Plot
yAxis(java.lang.String name, Plot.AxisOptions opts)
-
-
-
Method Detail
-
plot
public static Plot plot(Plot.PlotOptions opts)
-
plotOpts
public static Plot.PlotOptions plotOpts()
-
opts
public Plot.PlotOptions opts()
-
xAxis
public Plot xAxis(java.lang.String name, Plot.AxisOptions opts)
-
yAxis
public Plot yAxis(java.lang.String name, Plot.AxisOptions opts)
-
series
public Plot series(java.lang.String name, Plot.Data data, Plot.DataSeriesOptions opts)
-
series
public Plot series(java.lang.String name, Plot.DataSeriesOptions opts)
-
save
public void save(java.lang.String fileName, java.lang.String type) throws java.io.IOException
- Throws:
java.io.IOException
-
axisOpts
public static Plot.AxisOptions axisOpts()
-
seriesOpts
public static Plot.DataSeriesOptions seriesOpts()
-
data
public static Plot.Data data()
-
formatDouble
public static java.lang.String formatDouble(double d, Plot.AxisFormat format)
-
-