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 a sub-plot.
Set the content of a sub-plot.
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 plots arranged in a row.
This Figure subclass is designed for equally spaced subplots in a row. Use the companion object's
apply
method to construct a new instance, specifying the number of subplots. For instance,val figure = RowFigure(2)
will build a new figure with two subplots in a row. You can then use the plot method to set the content of specific sub-plots.