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 copy of the current figure with the new plot.
Get the plot at a specific row, column
.
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)
Get the view-port at a specific row, column
.
Set the plot width (in px)
Set the plot width (in px)
Figure containing plots arranged on a grid.
This Figure subclass is designed for equally spaced subplots on a grid. Use the companion object's
apply
method to construct a new instance, specifying the number of rows and columns. For instance,val figure = GridFigure(2, 3)
will build a new figure with 6 subplots, arranged in a grid with two rows and three columns. You can then use the plot method to set the content of specific sub-plots.