org.jetbrains.kotlinx.ggdsl.letsplot.layout.kt Maven / Gradle / Ivy
package org.jetbrains.kotlinx.ggdsl.letsplot
import org.jetbrains.kotlinx.ggdsl.dsl.PlotContext
import org.jetbrains.kotlinx.ggdsl.ir.Layout
//todo
data class LetsPlotLayout(
var title: String? = null,
var subtitle: String? = null,
var caption: String? = null,
// todo remove?
var xAxisLabel: String? = null,
var yAxisLabel: String? = null,
var size: Pair? = null
): Layout
inline fun PlotContext.layout(block: LetsPlotLayout.() -> Unit) {
layout = LetsPlotLayout().apply(block)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy