Skip to content

Commit 1a78f6d

Browse files
committed
Deploy v4.2.0 and update demos and some docs.
1 parent 37d7f12 commit 1a78f6d

17 files changed

+290
-232
lines changed

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,65 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
66
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). All scales should have the 'format' parameter.
77

8+
## [4.2.0] - 2022-12-30
9+
10+
### Added
11+
12+
- `residualPlot()`.
13+
14+
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/residual_plot.ipynb).
15+
16+
- `geomAreaRidges()`.
17+
18+
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/ridgeline_plot.ipynb).
19+
20+
- `geomPie()`.
21+
22+
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/geom_pie.ipynb).
23+
24+
- Annotations for pie chart:
25+
26+
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/annotations_for_pie.ipynb).
27+
28+
- New variables computed by 'count' and 'count2d' statistics: '..sum..', '..prop..', '..proppct..'.
29+
30+
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/stat_count_2d.ipynb).
31+
32+
- `geomImshow()`:
33+
34+
See: [image_101](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/image_101.ipynb),
35+
[image_fisher_boat](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/image_fisher_boat.ipynb),
36+
[image_grayscale](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/image_grayscale.ipynb),
37+
[image_extent](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/image_extent.ipynb)
38+
39+
- New parameters in `geomViolin()`:
40+
- `tailsCutoff`
41+
([example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/violin_tails_cutoff.ipynb))
42+
- `showHalf`
43+
([example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/violin_show_half.ipynb))
44+
45+
- Static maps:
46+
- `useCRS` parameter with value "provided" for `geomMap()` and other geoms, working with `SpatialDataset`.
47+
48+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.2.0/projection_provided.ipynb).
49+
50+
51+
### Changed
52+
53+
- Upgraded Lets-Plot version to 3.0.0 (was 2.5.1).
54+
- Java/Swing platf.: Apache Batik upgraded to v.1.16 [[#624](https://github.com/JetBrains/lets-plot/issues/624)], [[LPK #140](https://github.com/JetBrains/lets-plot-kotlin/issues/140)].
55+
- The default size is increased for the plot title and decreased for the caption.
56+
- Upgraded Kotlin version to 1.7.21 (was 1.7.20).
57+
58+
59+
### Fixed
60+
61+
- Themes: can't change plot background after applying a "flavor" [[#623](https://github.com/JetBrains/lets-plot/issues/623)].
62+
- Layout: uneven left/right, top/bottom plot margins [[#625](https://github.com/JetBrains/lets-plot/issues/625)].
63+
- A plot building error with empty data on various geoms.
64+
- Precision error in gradient [[#634](https://github.com/JetBrains/lets-plot/issues/634)].
65+
66+
867
## [4.1.1] - 2022-11-08
968

1069
### Added

README_DEV.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@ repositories {
8484

8585
```groovy
8686
dependencies {
87-
implementation "org.jetbrains.lets-plot:lets-plot-batik:2.5.1"
88-
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.1.1"
87+
implementation "org.jetbrains.lets-plot:lets-plot-batik:3.0.0"
88+
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.2.0"
8989
}
9090
```
9191

9292
- JVM/Swing/JavaFX application:
9393

9494
```groovy
9595
dependencies {
96-
implementation "org.jetbrains.lets-plot:lets-plot-jfx:2.5.1"
97-
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.1.1"
96+
implementation "org.jetbrains.lets-plot:lets-plot-jfx:3.0.0"
97+
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.2.0"
9898
}
9999
```
100100

@@ -106,16 +106,16 @@ If your JVM app doesn't use either frontend, you can provide just "lets-plot-com
106106

107107
```groovy
108108
dependencies {
109-
implementation "org.jetbrains.lets-plot:lets-plot-common:2.5.1"
110-
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.1.1"
109+
implementation "org.jetbrains.lets-plot:lets-plot-common:3.0.0"
110+
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.2.0"
111111
}
112112
```
113113

114114
- Kotlin/JS application:
115115

116116
```groovy
117117
dependencies {
118-
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-js:4.1.1"
118+
implementation "org.jetbrains.lets-plot:lets-plot-kotlin-js:4.2.0"
119119
}
120120
```
121121

@@ -150,8 +150,8 @@ The following steps describe how to use `Lets-Plot` JVM "backend" in "browser" f
150150
#### Add dependencies on maven artifacts
151151

152152
```
153-
org.jetbrains.lets-plot:lets-plot-common:2.5.1
154-
org.jetbrains.lets-plot-kotlin:lets-plot-kotlin-jvm:4.1.1
153+
org.jetbrains.lets-plot:lets-plot-common:3.0.0
154+
org.jetbrains.lets-plot-kotlin:lets-plot-kotlin-jvm:4.2.0
155155
```
156156

157157
#### Implement the `jetbrains.letsPlot.FrontendContext` interface:

RELEASE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ This is optional - needed only if newer version of 'kotlin-jupyter-kernel' is re
9898

9999
##### 2. Update demo notebooks
100100

101-
- move from 'docs/examples/jupyter-notebooks-dev' to 'docs/examples/jupyter-notebooks'.
102101
- Make sure the `%useLatestDescriptors` line magic is present.
103102
- Remove parameters in the `%use lets-plot` line magic.
104103
- Re-run all notebooks.

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ project.extra["buildSettings"] = settings
2525
allprojects {
2626
group = "org.jetbrains.lets-plot"
2727
version = when (name) {
28-
"dokka" -> "4.1.1"
29-
else -> "4.1.2-alpha1"
28+
"dokka" -> "4.2.0"
29+
else -> "4.2.1-alpha1"
3030
}
3131

3232
val version = version as String

docs/examples/jupyter-notebooks/f-4.2.0/annotations_for_pie.ipynb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{
3131
"data": {
3232
"text/html": [
33-
" <div id=\"7fr7Qe\"></div>\n",
33+
" <div id=\"uh7NTq\"></div>\n",
3434
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
3535
" if(!window.letsPlotCallQueue) {\n",
3636
" window.letsPlotCallQueue = [];\n",
@@ -55,9 +55,9 @@
5555
" var div = document.createElement(\"div\");\n",
5656
" div.style.color = 'darkred';\n",
5757
" div.textContent = 'Error loading Lets-Plot JS';\n",
58-
" document.getElementById(\"7fr7Qe\").appendChild(div);\n",
58+
" document.getElementById(\"uh7NTq\").appendChild(div);\n",
5959
" };\n",
60-
" var e = document.getElementById(\"7fr7Qe\");\n",
60+
" var e = document.getElementById(\"uh7NTq\");\n",
6161
" e.appendChild(script);\n",
6262
" })();\n",
6363
" </script>"
@@ -81,7 +81,7 @@
8181
{
8282
"data": {
8383
"text/plain": [
84-
"Lets-Plot Kotlin API v.4.1.2-alpha1. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.3.0.0."
84+
"Lets-Plot Kotlin API v.4.2.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.3.0.0."
8585
]
8686
},
8787
"execution_count": 2,
@@ -166,7 +166,7 @@
166166
{
167167
"data": {
168168
"text/html": [
169-
" <div id=\"RtXBHa\"></div>\n",
169+
" <div id=\"uVY9YY\"></div>\n",
170170
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
171171
" (function() {\n",
172172
" var plotSpec={\n",
@@ -193,7 +193,7 @@
193193
"}\n",
194194
"}]\n",
195195
"};\n",
196-
" var plotContainer = document.getElementById(\"RtXBHa\");\n",
196+
" var plotContainer = document.getElementById(\"uVY9YY\");\n",
197197
" window.letsPlotCall(function() {{\n",
198198
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
199199
" }});\n",
@@ -230,7 +230,7 @@
230230
{
231231
"data": {
232232
"text/html": [
233-
" <div id=\"UvMy2i\"></div>\n",
233+
" <div id=\"q07Pf8\"></div>\n",
234234
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
235235
" (function() {\n",
236236
" var plotSpec={\n",
@@ -277,7 +277,7 @@
277277
"\"legend_position\":\"none\"\n",
278278
"}\n",
279279
"};\n",
280-
" var plotContainer = document.getElementById(\"UvMy2i\");\n",
280+
" var plotContainer = document.getElementById(\"q07Pf8\");\n",
281281
" window.letsPlotCall(function() {{\n",
282282
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
283283
" }});\n",
@@ -318,7 +318,7 @@
318318
{
319319
"data": {
320320
"text/html": [
321-
" <div id=\"HcoTCn\"></div>\n",
321+
" <div id=\"nMwoyn\"></div>\n",
322322
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
323323
" (function() {\n",
324324
" var plotSpec={\n",
@@ -353,8 +353,8 @@
353353
"\"..x..\":[0.0,0.0,0.0,0.0,0.0,0.0,0.0],\n",
354354
"\"..count..\":[47.0,41.0,62.0,5.0,11.0,33.0,35.0],\n",
355355
"\"..y..\":[0.0,0.0,0.0,0.0,0.0,0.0,0.0],\n",
356-
"\"..prop..\":[0.20085470085470086,0.1752136752136752,0.26495726495726496,0.021367521367521368,0.04700854700854701,0.14102564102564102,0.14957264957264957],\n",
357-
"\"class\":[\"compact\",\"midsize\",\"suv\",\"2seater\",\"minivan\",\"pickup\",\"subcompact\"]\n",
356+
"\"class\":[\"compact\",\"midsize\",\"suv\",\"2seater\",\"minivan\",\"pickup\",\"subcompact\"],\n",
357+
"\"..prop..\":[0.20085470085470086,0.1752136752136752,0.26495726495726496,0.021367521367521368,0.04700854700854701,0.14102564102564102,0.14957264957264957]\n",
358358
"}\n",
359359
"}],\n",
360360
"\"theme\":{\n",
@@ -370,7 +370,7 @@
370370
"\"legend_position\":\"none\"\n",
371371
"}\n",
372372
"};\n",
373-
" var plotContainer = document.getElementById(\"HcoTCn\");\n",
373+
" var plotContainer = document.getElementById(\"nMwoyn\");\n",
374374
" window.letsPlotCall(function() {{\n",
375375
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
376376
" }});\n",
@@ -414,7 +414,7 @@
414414
{
415415
"data": {
416416
"text/html": [
417-
" <div id=\"9avvR0\"></div>\n",
417+
" <div id=\"LPuGI5\"></div>\n",
418418
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
419419
" (function() {\n",
420420
" var plotSpec={\n",
@@ -477,7 +477,7 @@
477477
"\"legend_position\":\"none\"\n",
478478
"}\n",
479479
"};\n",
480-
" var plotContainer = document.getElementById(\"9avvR0\");\n",
480+
" var plotContainer = document.getElementById(\"LPuGI5\");\n",
481481
" window.letsPlotCall(function() {{\n",
482482
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
483483
" }});\n",
@@ -521,7 +521,7 @@
521521
{
522522
"data": {
523523
"text/html": [
524-
" <div id=\"3WMWI5\"></div>\n",
524+
" <div id=\"74NvVC\"></div>\n",
525525
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
526526
" (function() {\n",
527527
" var plotSpec={\n",
@@ -586,7 +586,7 @@
586586
"}\n",
587587
"}\n",
588588
"};\n",
589-
" var plotContainer = document.getElementById(\"3WMWI5\");\n",
589+
" var plotContainer = document.getElementById(\"74NvVC\");\n",
590590
" window.letsPlotCall(function() {{\n",
591591
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
592592
" }});\n",
@@ -631,7 +631,7 @@
631631
{
632632
"data": {
633633
"text/html": [
634-
" <div id=\"XlL6jG\"></div>\n",
634+
" <div id=\"5bchNB\"></div>\n",
635635
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
636636
" (function() {\n",
637637
" var plotSpec={\n",
@@ -695,7 +695,7 @@
695695
"\"flavor\":\"darcula\"\n",
696696
"}\n",
697697
"};\n",
698-
" var plotContainer = document.getElementById(\"XlL6jG\");\n",
698+
" var plotContainer = document.getElementById(\"5bchNB\");\n",
699699
" window.letsPlotCall(function() {{\n",
700700
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
701701
" }});\n",
@@ -740,7 +740,7 @@
740740
{
741741
"data": {
742742
"text/html": [
743-
" <div id=\"VYQZyP\"></div>\n",
743+
" <div id=\"sSPNAw\"></div>\n",
744744
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
745745
" (function() {\n",
746746
" var plotSpec={\n",
@@ -790,7 +790,7 @@
790790
"\"legend_position\":\"none\"\n",
791791
"}\n",
792792
"};\n",
793-
" var plotContainer = document.getElementById(\"VYQZyP\");\n",
793+
" var plotContainer = document.getElementById(\"sSPNAw\");\n",
794794
" window.letsPlotCall(function() {{\n",
795795
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
796796
" }});\n",
@@ -836,7 +836,7 @@
836836
{
837837
"data": {
838838
"text/html": [
839-
" <div id=\"aMdXZ7\"></div>\n",
839+
" <div id=\"W2aO7f\"></div>\n",
840840
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
841841
" (function() {\n",
842842
" var plotSpec={\n",
@@ -884,7 +884,7 @@
884884
"}\n",
885885
"}]\n",
886886
"};\n",
887-
" var plotContainer = document.getElementById(\"aMdXZ7\");\n",
887+
" var plotContainer = document.getElementById(\"W2aO7f\");\n",
888888
" window.letsPlotCall(function() {{\n",
889889
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
890890
" }});\n",
@@ -928,7 +928,7 @@
928928
{
929929
"data": {
930930
"text/html": [
931-
" <div id=\"g8yMWU\"></div>\n",
931+
" <div id=\"KAM4oK\"></div>\n",
932932
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
933933
" (function() {\n",
934934
" var plotSpec={\n",
@@ -968,7 +968,7 @@
968968
"\"legend_position\":\"right\"\n",
969969
"}\n",
970970
"};\n",
971-
" var plotContainer = document.getElementById(\"g8yMWU\");\n",
971+
" var plotContainer = document.getElementById(\"KAM4oK\");\n",
972972
" window.letsPlotCall(function() {{\n",
973973
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
974974
" }});\n",

0 commit comments

Comments
 (0)