All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.kandy.letsplot.multiplot.plotBunch.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0-dev-57
Show newest version
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