forked from Kotlin/kotlin-jupyter-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gral.json
22 lines (22 loc) · 841 Bytes
/
gral.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"description": "Java library for displaying plots",
"properties": {
"v": "0.11"
},
"link": "https://github.com/eseifert/gral",
"dependencies": [
"de.erichseifert.gral:gral-core:$v"
],
"imports": [
"de.erichseifert.gral.data.*",
"de.erichseifert.gral.data.filters.*",
"de.erichseifert.gral.graphics.*",
"de.erichseifert.gral.plots.*",
"de.erichseifert.gral.plots.lines.*",
"de.erichseifert.gral.plots.points.*",
"de.erichseifert.gral.util.*"
],
"init": [
"fun<T: Drawable> T.show(sizeX: Double, sizeY: Double): Any {\n val writer = de.erichseifert.gral.io.plots.DrawableWriterFactory.getInstance().get(\"image/svg+xml\")\n\n val buf = java.io.ByteArrayOutputStream()\n\n writer.write(this, buf, sizeX, sizeY)\n\n return MIME(writer.mimeType to buf.toString())\n}"
]
}