Skip to content

Commit f3f42c9

Browse files
committed
Release v4.5.0
1 parent 7117070 commit f3f42c9

File tree

14 files changed

+1608
-243
lines changed

14 files changed

+1608
-243
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.5.0] - 2023-11-06
9+
10+
### Added
11+
12+
- Annotations in Barchart.
13+
14+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/bar_annotations.ipynb).
15+
16+
17+
- Common theme support in subplots (i.e. `gggrid()`) [[LPK-#197](https://github.com/JetBrains/lets-plot-kotlin/issues/197)].
18+
19+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/gggrid_theme.ipynb).
20+
21+
22+
- `HCL` and `CIELAB` color space for hue color scale and gradient color scales [[#876](https://github.com/JetBrains/lets-plot/issues/876)].
23+
24+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/color_space_update.ipynb).
25+
26+
27+
- New scale transformations: `'log2'` and `'symlog'`.
28+
29+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/new_scale_transformations.ipynb).
30+
31+
32+
- `plotMargin` parameter in `theme()` [[#856](https://github.com/JetBrains/lets-plot/issues/856)].
33+
34+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.4/theme_plot_margin.ipynb).
35+
36+
37+
- Dual orientation for geometries:
38+
- `geomErrorBar()`;
39+
- `geomCrossbar()`;
40+
- `geomPointRange()`;
41+
- `geomLineRange()`;
42+
- `geomRibbon()`.
43+
44+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.4/horizontal_geoms.ipynb).
45+
46+
47+
### Fixed
48+
49+
- Husl palette equivalent [[#876](https://github.com/JetBrains/lets-plot/issues/876)].
50+
- Tooltips are trimmed and not visible on a very narrow chart [[#837](https://github.com/JetBrains/lets-plot/issues/837)].
51+
- Exception label is unresizeble, uncopyable and uncontrollable [[#902](https://github.com/JetBrains/lets-plot/issues/902)].
52+
- Flickering during plot downsizing [[#888](https://github.com/JetBrains/lets-plot/issues/888)].
53+
- Bad default formatting of numeric values in annotations [[#905](https://github.com/JetBrains/lets-plot/issues/905)].
54+
- corr_plot: unexpected whitespace between the "geometry area" and the legend [[#877](https://github.com/JetBrains/lets-plot/issues/877)].
55+
- scale_log: an option to generate only breaks which are integer powers of 10 needed [[#850](https://github.com/JetBrains/lets-plot/issues/850)].
56+
- Trimmed legend when bounds of the rightmost X-axis tick label exceeds the axis length [[#851](https://github.com/JetBrains/lets-plot/issues/851)].
57+
- HTML files exported using ggsave() are missing the encoding specification [[#900](https://github.com/JetBrains/lets-plot/issues/900)].
58+
- `plot_margin` parameter in `theme()` [[#856](https://github.com/JetBrains/lets-plot/issues/856)].
59+
- Subplot themes not inherited by parent [[LPK-#197](https://github.com/JetBrains/lets-plot-kotlin/issues/197)].
60+
- `element_blank()` has no effect on plot title/subtitle/caption in `theme()` [[#913](https://github.com/JetBrains/lets-plot/issues/913)].
61+
- Lollipop in legend is disproportionately large [[LPK-216](https://github.com/JetBrains/lets-plot-kotlin/issues/216)].
62+
- geomBar with fill, produces tooltips artefacts [[#895](https://github.com/JetBrains/lets-plot/issues/895)].
63+
- Exception, when trying to build plot with column name containing line breakes [[#894](https://github.com/JetBrains/lets-plot/issues/894)].
64+
- Added "grey" spelling for the gray color (earlier - "gray" only).
65+
66+
867

968
## [4.4.3] - 2023-09-15
1069

README.md

Lines changed: 23 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ See the "Quickstart" notebook in [Datalore](https://datalore.jetbrains.com/view/
6666
- [Compose Multiplatform](#in-compose-multiplatform)
6767
- [JVM and Kotlin/JS](#in-jvm-js)
6868
- [Documentation](#documentation)
69-
- [What is new in 4.4.2](#new)
70-
- [Migrating from v3 to v4](#migrating4)
69+
- [What is new in 4.5.0](#new)
7170
- [Change Log](#change_log)
7271
- [Code of Conduct](#CoC)
7372
- [License](#license)
@@ -102,7 +101,7 @@ In this case the latest `library descriptor` will be pulled from the [Kotlin Jup
102101
#### Library Descriptor Parameters
103102

104103
```
105-
%use lets-plot(api=4.4.3, lib=4.0.1, js=4.0.1, isolatedFrame=false)
104+
%use lets-plot(api=4.5.0, lib=4.1.0, js=4.1.0, isolatedFrame=false)
106105
```
107106
- `api` - version of the Lets-Plot Kotlin API.
108107
- `lib` - version of the Lets-Plot Multiplatform (JARs).
@@ -139,67 +138,43 @@ Examples of using of the Lets-Plot Kotlin API in JVM and Kotlin/JS applications
139138

140139

141140
<a id="new"></a>
142-
## What is new in 4.4.2
141+
## What is new in 4.5.0
143142

144-
> Note: Due to major package refactoring in the main Lets-Plot library, this version (4.4.2) of the Kotlin API\
145-
> is not compatible with versions of Lets-Plot library v3.2.0 and earlier.
143+
- #### Annotations in Barchart
146144

147-
148-
### A Number of Geometry Defaults Changed
149-
150-
- The default qualitative color palette is now [Color Brewer "Set1"](https://colorbrewer2.org/#type=qualitative&scheme=Set1&n=9) (was ["Set2"](https://colorbrewer2.org/#type=qualitative&scheme=Set2&n=8)).
151-
- Slightly bigger default size of points and width of lines.
152-
- Flavor-aware default colors for points, lines etc.
153-
<br>
154-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23c/images/geom_defaults.png" alt="f-23c/images/geom_defaults.png" width="504" height="150">
155145
<br>
156-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23c/images/flavor_geom_colors.png" alt="f-23c/images/flavor_geom_colors.png" width="1024" height="120">
146+
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23e/images/annotated_bars.png" alt="f-23e/images/annotated_bars.png" width="512" height="312">
157147

158-
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/geom_theme_colors.ipynb).
148+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/bar_annotations.ipynb).
159149

160-
- Size of points is slightly adjusted to match the width of a line of the same "size".
161-
<br>
162-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23c/images/point_vs_line.png" alt="f-23c/images/point_vs_line.png" width="170" height="150">
163-
<br>
150+
- #### Common Theme for Subplots
164151

165-
### Support for Variadic Line Width and/or Color in `geomLine()` and `geomPath()`
166152
<br>
167-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23c/images/variadic_width.png" alt="f-23c/images/variadic_width.png" width="455" height="150">
153+
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23e/images/gggrid_theme.png" alt="f-23e/images/gggrid_theme.png" width="512" height="292">
168154

169-
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/aes_size_color_variadic_lines.ipynb).
155+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/gggrid_theme.ipynb).
170156

171-
### Parameter `"sizeUnit"` in `geomPie()`
172-
A way to specify size of the pie in units relative to the plot size.
157+
- #### `HCL` and `CIELAB` Color Space for Hue Color Scale and Gradient Color Scales
173158

174-
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/geom_pie_size_unit.ipynb).
175-
176-
### Stroke and Spacers in `geomPie()`
177159
<br>
178-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23c/images/pie_stroke.png" alt="f-23c/images/pie_stroke.png" width="162" height="150">
179-
180-
See: [example notebook](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/geom_pie_stroke_and_spacers.ipynb).
181-
182-
183-
### New `themeVoid()`, Geometries and Statistics
160+
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-23e/images/hue_color_scale.png" alt="f-23e/images/hue_color_scale.png" width="512" height="341">
184161

185-
- `themeVoid()`: [example](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/theme_void.ipynb).
186-
- `statECDF()`: [example](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/stat_ecdf.ipynb).
187-
- `geomFunction()`: [example](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/geom_function.ipynb).
188-
- `statSummary()`: [example](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/stat_summary.ipynb).
189-
- `statSummaryBin()`: [example](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/stat_summary_bin.ipynb).
190-
- `Stat.sum()` statistic: [example](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/stat_sum.ipynb).
191-
- `Stat.boxplotOutlier()` statistic: [example](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.2/stat_boxplot_outlier.ipynb).
162+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/color_space_update.ipynb).
192163

164+
- #### Scale Transformations: `'log2'` and `'symlog'`
165+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.5.0/new_scale_transformations.ipynb).
193166

194-
### Other improvements and fixes
195-
See [CHANGELOG.md](https://github.com/JetBrains/lets-plot-kotlin/blob/master/CHANGELOG.md#440---2023-05-10)
196-
for details.
167+
- #### Plot Margins
168+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.4/theme_plot_margin.ipynb).
197169

170+
- #### Dual Orientation in Geometries:
171+
- `geom_linerange()`
172+
- `geom_pointrange()`
173+
- `geom_errorbar()`
174+
- `geom_crossbar()`
175+
- `geom_ribbon()`
198176

199-
<a id="migrating4"></a>
200-
## Migrating from v3 to v4
201-
202-
For migration instructions see [Migrating to 4.0.0](https://github.com/JetBrains/lets-plot-kotlin/blob/master/CHANGELOG.md#migrating-to-400) section in the CHANGELOG.
177+
See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/f-4.4.4/horizontal_geoms.ipynb).
203178

204179

205180
<a id="change_log"></a>

USAGE_BATIK_JFX_JS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ plugins {
5252

5353
dependencies {
5454
// Lets-Plot Kotlin API
55-
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.4.3")
55+
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.5.0")
5656
// Lets-Plot Multiplatform (Batik rendering)
57-
implementation("org.jetbrains.lets-plot:lets-plot-batik:4.0.1")
57+
implementation("org.jetbrains.lets-plot:lets-plot-batik:4.1.0")
5858
}
5959
```
6060

@@ -75,9 +75,9 @@ plugins {
7575

7676
dependencies {
7777
// Lets-Plot Kotlin API
78-
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.4.3")
78+
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.5.0")
7979
// Lets-Plot Multiplatform (JFX Scene rendering)
80-
implementation("org.jetbrains.lets-plot:lets-plot-jfx:4.0.1")
80+
implementation("org.jetbrains.lets-plot:lets-plot-jfx:4.1.0")
8181
}
8282
```
8383

@@ -95,7 +95,7 @@ kotlin {
9595
named("jsMain") {
9696
dependencies {
9797
// Lets-Plot Kotlin API
98-
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-js:4.4.3")
98+
implementation("org.jetbrains.lets-plot:lets-plot-kotlin-js:4.5.0")
9999
}
100100
}
101101
}
@@ -193,7 +193,7 @@ val rawSpec = figure.toSpec()
193193
```kotlin
194194
val html: String = PlotHtmlExport.buildHtmlFromRawSpecs(
195195
plotSpec = rawSpec,
196-
scriptUrl = PlotHtmlHelper.scriptUrl(version="4.0.1"),
196+
scriptUrl = PlotHtmlHelper.scriptUrl(version="4.1.0"),
197197
iFrame = true
198198
)
199199
```

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ if (project.file("local.properties").exists()) {
2525
allprojects {
2626
group = "org.jetbrains.lets-plot"
2727
version = when (name) {
28-
"dokka" -> "4.4.3"
29-
else -> "4.4.4-SNAPSHOT"
28+
"dokka" -> "4.5.0"
29+
else -> "4.5.1-SNAPSHOT"
3030
}
3131

3232
if (localProps.getProperty("publish.local", "false").toBoolean()) {

demo/js-frontend-app/src/jsMain/resources/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</head>
1111
<body>
1212
<script type="text/javascript"
13-
src="https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.0.1/js-package/distr/lets-plot.min.js"></script>
13+
src="https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.1.0/js-package/distr/lets-plot.min.js"></script>
1414
<script src="js-frontend-app.js"></script>
1515
<div>
1616
<h2>Lets-Plot Kotlin/JS Demo.</h2>

0 commit comments

Comments
 (0)