visionforge/demo/playground/src/jvmMain/kotlin/plotlyVision.kt

23 lines
612 B
Kotlin
Raw Normal View History

2021-03-07 16:19:43 +03:00
package space.kscience.visionforge.examples
2021-01-12 12:52:22 +03:00
2021-05-05 15:28:06 +03:00
import space.kscience.dataforge.context.Context
2021-03-07 16:19:43 +03:00
import space.kscience.plotly.scatter
import space.kscience.visionforge.html.ResourceLocation
import space.kscience.visionforge.plotly.PlotlyPlugin
import space.kscience.visionforge.plotly.plotly
2021-01-12 12:52:22 +03:00
2021-05-05 15:28:06 +03:00
fun main() {
val context = Context {
plugin(PlotlyPlugin)
}
context.makeVisionFile(resourceLocation = ResourceLocation.SYSTEM){
2021-01-12 12:52:22 +03:00
vision {
plotly {
scatter {
2021-02-26 13:03:40 +03:00
x(1, 2, 3)
y(5, 8, 7)
2021-01-12 12:52:22 +03:00
}
}
}
}
}