-
Notifications
You must be signed in to change notification settings - Fork 47
/
MapGeomJfx.kt
29 lines (25 loc) · 958 Bytes
/
MapGeomJfx.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright (c) 2020. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plotDemo.plotConfig
import jetbrains.datalore.base.geometry.DoubleVector
import jetbrains.datalore.plot.builder.presentation.Style.JFX_PLOT_STYLESHEET
import jetbrains.datalore.plotDemo.model.plotConfig.MapGeom
import jetbrains.datalore.vis.demoUtils.SceneMapperDemoFactory
object MapGeomJfx {
@JvmStatic
fun main(args: Array<String>) {
with(MapGeom()) {
@Suppress("UNCHECKED_CAST")
val plotSpecList = plotSpecList() as List<MutableMap<String, Any>>
@Suppress("SpellCheckingInspection")
PlotConfigDemoUtil.show(
"Polynomial regression",
plotSpecList,
SceneMapperDemoFactory(JFX_PLOT_STYLESHEET),
DoubleVector(600.0, 300.0)
)
}
}
}