Set bottom margin (in px)
Set bottom margin (in px)
Set the plot height (in px)
Set the plot height (in px)
Set left margin (in px)
Set left margin (in px)
Set legend options
Set legend options
val legend = LegendOptions().fontSize(20) val figure = Figure().legend(legend)
Set layout margins
Set layout margins
Set the paper's background color.
Set the paper's background color.
Set the paper's background color with (red, green, blue, alpha)
Set the paper's background color with (red, green, blue, alpha)
Set the paper's background color
Set the paper's background color
val figure = Figure().paperBackgroundColor(Color.rgb(0, 255, 0))
Set the content of the figure.
Set the content of the figure.
This returns a new figure containing the plot instance.
Set the plot's background color
Set the plot's background color
Set the plot's background color with (red, green, blue, alpha)
Set the plot's background color with (red, green, blue, alpha)
Set the plot's background color
Set the plot's background color
val figure = Figure().plotBackgroundColor(Color.rgb(0, 255, 0))
Set right margin (in px)
Set right margin (in px)
Set figure title
Set figure title
Set top margin (in px)
Set top margin (in px)
Set the plot width (in px)
Set the plot width (in px)
Figure containing a single plot
Use the companion object's
apply
method to construct a new figure. Set the content of the plot on the figure with the plot method.Note that all the methods on this class return a copy of the current instance. They do not modify the instance in place. Instances of
SinglePlotFigure
are immutable.