Skip to content

Commit

Permalink
Fix entry point names
Browse files Browse the repository at this point in the history
  • Loading branch information
altavir committed Mar 17, 2021
1 parent 574fa39 commit e3f8978
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 7 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("ru.mipt.npm.gradle.project")
}

val dataforgeVersion by extra("0.4.0-dev-1")
val dataforgeVersion by extra("0.4.0-dev-2")

allprojects {
group = "space.kscience"
Expand All @@ -25,8 +25,9 @@ apiValidation {
}

ksciencePublish{
githubProject = "plotly.kt"
spaceRepo = "https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven"
github("plotly.kt")
space()
sonatype()
}

readme {
Expand Down
18 changes: 18 additions & 0 deletions examples/src/main/kotlin/plots3d/scatter3d.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package plots3d

import space.kscience.dataforge.meta.set
import space.kscience.plotly.Plotly
import space.kscience.plotly.makeFile
import space.kscience.plotly.trace

fun main() {
val plot = Plotly.plot {
trace {
set("type","scatter3d")
x(1,2,3)
y(1,2,3)
z(1,2,3)
}
}
plot.makeFile()
}
35 changes: 35 additions & 0 deletions examples/src/main/kotlin/plots3d/surface3d.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package plots3d

import space.kscience.dataforge.meta.set
import space.kscience.dataforge.values.asValue
import space.kscience.plotly.Plotly
import space.kscience.plotly.makeFile
import space.kscience.plotly.trace

private fun l(vararg numbers: Number) = numbers.map { it.asValue() }.asValue()

fun main() {
val plot = Plotly.plot {
trace {
z.value = listOf(
l(8.83, 8.89, 8.81, 8.87, 8.9, 8.87),
l(8.89, 8.94, 8.85, 8.94, 8.96, 8.92),
l(8.84, 8.9, 8.82, 8.92, 8.93, 8.91),
l(8.79, 8.85, 8.79, 8.9, 8.94, 8.92),
l(8.79, 8.88, 8.81, 8.9, 8.95, 8.92),
l(8.8, 8.82, 8.78, 8.91, 8.94, 8.92),
l(8.75, 8.78, 8.77, 8.91, 8.95, 8.92),
l(8.8, 8.8, 8.77, 8.91, 8.95, 8.94),
l(8.74, 8.81, 8.76, 8.93, 8.98, 8.99),
l(8.89, 8.99, 8.92, 9.1, 9.13, 9.11),
l(8.97, 8.97, 8.91, 9.09, 9.11, 9.11),
l(9.04, 9.08, 9.05, 9.25, 9.28, 9.27),
l(9, 9.01, 9, 9.2, 9.23, 9.2),
l(8.99, 8.99, 8.98, 9.18, 9.2, 9.19),
l(8.93, 8.97, 8.97, 9.18, 9.2, 9.18)
).asValue()
set("type", "surface")
}
}
plot.makeFile()
}
2 changes: 1 addition & 1 deletion fx-demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ javafx{
}

application {
mainClassName = "kscience.plotly.fx.PlotlyFXAppKt"
mainClassName = "space.kscience.plotly.fx.PlotlyFXAppKt"
}

val compileKotlin: KotlinCompile by tasks
Expand Down
2 changes: 1 addition & 1 deletion plotlykt-script/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ dependencies {
}

application{
mainClassName = "kscience.plotly.script.CliKt"
mainClassName = "space.kscience.plotly.script.CliKt"
}
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
val kotlinVersion = "1.4.31"
val toolsVersion = "0.8.4"
val toolsVersion = "0.9.1"

repositories {
maven("https://repo.kotlin.link")
Expand All @@ -17,7 +17,7 @@ pluginManagement {
id("ru.mipt.npm.gradle.jvm") version toolsVersion
id("ru.mipt.npm.gradle.js") version toolsVersion
id("ru.mipt.npm.gradle.publish") version toolsVersion
kotlin("jupyter.api") version "0.8.3.236"
kotlin("jupyter.api") version "0.8.3.281"
kotlin("jvm") version kotlinVersion
kotlin("js") version kotlinVersion
kotlin("multiplatform") version kotlinVersion
Expand Down

0 comments on commit e3f8978

Please sign in to comment.