Open devcrocod opened 1 year ago
fun myPlotWithFlavor(flavor: Flavor): Plot {
plot {
....
layout.flavor = flavor
}
}
val plots = flavors.map { myPlotWithFlavor(it) }
This creates several plots
My request is specifically about changing the current one. I understand that it's necessary to limit changes to data and possibly existing layers
@AndreiKingsley can you describe about the design of the decision?
Current design:
Add Plot.configure {}
extension, that allows to add new layers and modify the layout.
I want to save my plot to a variable, and then add or change some parameters.
For example, I have a plot and I want to use it with different flavours
Right now, my code looks like this: