Package velo.ladaalpha.misc
Class Plot
java.lang.Object
velo.ladaalpha.misc.Plot
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 ClassesModifier and TypeClassDescriptionstatic enumThe Enum AxisFormat.static classThe Class AxisOptions.static classThe Class Data.classThe Class DataSeries.static classThe Class DataSeriesOptions.static enumThe Enum LegendFormat.static enumThe Enum Line.static enumThe Enum Marker.static classThe Class PlotOptions.static classThe Class Range. -
Method Summary
Modifier and TypeMethodDescriptionstatic Plot.AxisOptionsaxisOpts()Axis opts.static Plot.Datadata()Data.static StringformatDouble(double d, Plot.AxisFormat format) Format double.opts()Opts.static Plotplot(Plot.PlotOptions opts) Plot.static Plot.PlotOptionsplotOpts()Plot opts.voidSave.series(String name, Plot.Data data, Plot.DataSeriesOptions opts) Series.series(String name, Plot.DataSeriesOptions opts) Series.static Plot.DataSeriesOptionsSeries opts.xAxis(String name, Plot.AxisOptions opts) X axis.yAxis(String name, Plot.AxisOptions opts) Y axis.
-
Method Details
-
plot
Plot.- Parameters:
opts- the opts- Returns:
- the plot
-
plotOpts
Plot opts.- Returns:
- the plot options
-
opts
Opts.- Returns:
- the plot options
-
xAxis
X axis.- Parameters:
name- the nameopts- the opts- Returns:
- the plot
-
yAxis
Y axis.- Parameters:
name- the nameopts- the opts- Returns:
- the plot
-
series
Series.- Parameters:
name- the namedata- the dataopts- the opts- Returns:
- the plot
-
series
Series.- Parameters:
name- the nameopts- the opts- Returns:
- the plot
-
save
Save.- Parameters:
fileName- the file nametype- the type- Throws:
IOException- Signals that an I/O exception has occurred.
-
axisOpts
Axis opts.- Returns:
- the axis options
-
seriesOpts
Series opts.- Returns:
- the data series options
-
data
Data.- Returns:
- the data
-
formatDouble
Format double.- Parameters:
d- the dformat- the format- Returns:
- the string
-