Package htw.ai.dln.utils
Class Plot
- java.lang.Object
-
- htw.ai.dln.utils.Plot
-
public class Plot extends java.lang.ObjectSimple 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 classPlot.AxisFormatstatic classPlot.AxisOptionsstatic classPlot.DataclassPlot.DataSeriesstatic classPlot.DataSeriesOptionsstatic classPlot.LegendFormatstatic classPlot.Linestatic classPlot.Markerstatic classPlot.PlotOptionsstatic classPlot.Range
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Plot.AxisOptionsaxisOpts()static Plot.Datadata()static java.lang.StringformatDouble(double d, Plot.AxisFormat format)Plot.PlotOptionsopts()static Plotplot(Plot.PlotOptions opts)static Plot.PlotOptionsplotOpts()voidsave(java.lang.String fileName, java.lang.String type)Plotseries(java.lang.String name, Plot.Data data, Plot.DataSeriesOptions opts)Plotseries(java.lang.String name, Plot.DataSeriesOptions opts)static Plot.DataSeriesOptionsseriesOpts()PlotxAxis(java.lang.String name, Plot.AxisOptions opts)PlotyAxis(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)
-
-