forked from kscience/visionforge
23 lines
612 B
Kotlin
23 lines
612 B
Kotlin
package space.kscience.visionforge.examples
|
|
|
|
import space.kscience.dataforge.context.Context
|
|
import space.kscience.plotly.scatter
|
|
import space.kscience.visionforge.html.ResourceLocation
|
|
import space.kscience.visionforge.plotly.PlotlyPlugin
|
|
import space.kscience.visionforge.plotly.plotly
|
|
|
|
fun main() {
|
|
val context = Context {
|
|
plugin(PlotlyPlugin)
|
|
}
|
|
context.makeVisionFile(resourceLocation = ResourceLocation.SYSTEM){
|
|
vision {
|
|
plotly {
|
|
scatter {
|
|
x(1, 2, 3)
|
|
y(5, 8, 7)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |