org.jetbrains.kotlinx.kandy.letsplot.multiplot.plotBunch.kt Maven / Gradle / Ivy
package org.jetbrains.kotlinx.kandy.letsplot.multiplot
import org.jetbrains.kotlinx.kandy.letsplot.multiplot.context.PlotBunchBuffer
import org.jetbrains.kotlinx.kandy.letsplot.multiplot.model.PlotBunch
/**
* Collection of plots.
* Each plot can have an arbitrary location and size.
* Creates [PlotBunchBuffer] with method [PlotBunchBuffer.add] that adds a plot with the specified coordinates
* of the upper left point and size.
*
* @return [PlotBunch] with given plots.
*/
public inline fun plotBunch(block: PlotBunchBuffer.() -> Unit): PlotBunch {
return PlotBunch(PlotBunchBuffer().apply(block).items)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy