Skip to content

Commit 6c08f6f

Browse files
authored
Update docs for v1.1.0 (#43)
1 parent 5f63185 commit 6c08f6f

18 files changed

+1443
-224
lines changed

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [1.0.1-dev-1] - 2020-10-07
10+
## [1.1.0] - 2020-11-xx
1111
### Added
12-
- Parameters `map`, `mapJoin` in `geom_polygon, geom_path, geom_point, geom_text`
13-
- Converter from `org.geotools.data.simple.SimpleFeatureCollection` to `jetbrains.letsPlot.spatial.SpatialDataset`
12+
- GeoTools support (see [geotools.md](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/geotools.md)).
13+
- API for tooltip customization (see [tooltips.md](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/tooltips.md)).
14+
- `geom_map()`.
15+
- `labelFormat` parameter in `geom_text()`.
16+
- `reverse` parameter in `scale_x/y_discrete()`.
17+
- `scale_x_discrete_reversed()`, `scale_y_discrete_reversed()`
18+
19+
### Changed
20+
- Built with Lets-Plot v1.5.4 (was v1.5.2).
21+
22+
See Lets-Plot [CHANGELOG.md](https://github.com/JetBrains/lets-plot/blob/master/CHANGELOG.md) for changes and fixes in 1.5.3, 1.5.4.
1423

1524
### Fixed
1625
- `ggsave()` ignores raster format file extension.
17-
- `as_discrete()`: if more than one is used in the same mapping block then all but one of them are ignored.
26+
- `as_discrete()`: if more than one is used in the same mapping block, then all but one of them are ignored.
1827

1928
## [1.0.0] - 2020-08-13
2029
### Added

README.md

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
- [Data sampling](#sampling)
4242
- [GGBunch](#ggbunch)
4343
- [Saving plot to file](#export)
44-
45-
- [What is new in 1.0.0](#new)
44+
- [Tooltip customization](#tooltip-customization)
45+
- [GeoTools support](#geotools)
46+
47+
- [What is new in 1.1.0](#new)
4648
- [Change log](#change_log)
4749
- [License](#license)
4850

@@ -151,7 +153,7 @@ See [README_DEV.md](https://github.com/JetBrains/lets-plot-kotlin/blob/master/RE
151153

152154
Sampling is a special technique of data transformation, which helps to deal with large datasets and overplotting.
153155

154-
[Learn more](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/sampling.md) about sampling in Lets-Plot.
156+
Learn more: [Data Sampling](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/sampling.md).
155157

156158
<a id="ggbunch"></a>
157159
#### GGBunch
@@ -191,23 +193,45 @@ ggsave(p, "density.png")
191193
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot-kotlin/master/docs/examples/images/ggsave_demo.png" alt="Couldn't load ggsave_demo.png" width="500" height="250"/>
192194
<br/>
193195

194-
See [ggsave documentation](https://htmlpreview.github.io/?https://raw.githubusercontent.com/JetBrains/lets-plot-kotlin/master/docs/api-reference/plot-api/jetbrains.lets-plot.export/ggsave.html)
196+
See `ggsave()` [documentation](https://htmlpreview.github.io/?https://raw.githubusercontent.com/JetBrains/lets-plot-kotlin/master/docs/api-reference/plot-api/jetbrains.lets-plot.export/ggsave.html)
195197
for more information about the function arguments and default values.
196198

199+
<a id="tooltip-customization"></a>
200+
#### Tooltip customization
201+
202+
You can customize the content of tooltips for the layer by using the parameter `tooltips` of `geom` functions.
203+
204+
Learn more: [Tooltip Customization](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/tooltips.md).
205+
206+
<a id="geotools"></a>
207+
#### GeoTools support
208+
209+
[GeoTools](https://www.geotools.org/) is an open source Java GIS Toolkit.
210+
211+
Lets-Plot supports visualization of a set of `SimpleFeature`-s stored in `SimpleFeatureCollection`, as well as
212+
individual `Geometry` and `ReferencedEnvelope` objects.
213+
214+
Learn more: [GeoTools Support](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/geotools.md).
215+
216+
197217
<a id="new"></a>
198-
## What is new in 1.0.0
218+
## What is new in 1.1.0
199219

200-
Maven artifact __group id__ has changed in this release.
220+
- Tooltip Customization
201221

202-
Now it is: `org.jetbrains.lets-plot-kotlin` (before was: `org.jetbrains.lets-plot`).
222+
New API for customization of tooltip contents. See [Tooltip Customization](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/tooltips.md)) for details.
223+
224+
- Formatting labels in `geom_text()`
203225

204-
To include Lets-Plot Kotlin API to your Gradle project for example, use the following dependency:
226+
New parameter, 'labelFormat' to define a formatting pattern.
205227

206-
```groovy
207-
dependencies {
208-
api "org.jetbrains.lets-plot-kotlin:lets-plot-kotlin-api:<api version>"
209-
}
210-
```
228+
See demo: [label_format.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/label_format.ipynb)
229+
230+
- GeoTools support
231+
232+
Visualization of GeoTools's `SimpleFeature`-s and other objects. See [GeoTools Support](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/geotools.md)) for details.
233+
234+
- Other changes and fixes - see [CHANGELOG.md](https://github.com/JetBrains/lets-plot-kotlin/blob/master/CHANGELOG.md) for details.
211235

212236
<a id="change_log"></a>
213237
## Change Log

docs/examples.md

Lines changed: 65 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
## Example Notebooks
22

3-
Try the following examples to study more features of the `Lets-Plot` library.
4-
3+
Try the following tutorials and examples to learn and evaluate various features of the `Lets-Plot` library.
4+
5+
- [Quickstart and User Guide](#quickstart)
6+
- [Geoms and Stats](#geoms_n_stats)
7+
- [Position Adjustment](#pos)
8+
- [Scales](#scales)
9+
- [Facets](#facets)
10+
- [GGBunch](#ggbunch)
11+
- [`as_discrete()` function](#as_discrete)
12+
- [Export to File](#export)
13+
- [Theme](#theme)
14+
- [Data Sampling](#sampling)
15+
- [Tooltip Customization](#tooltip)
16+
- [GeoTools Support](#geotools)
17+
18+
<a id="quickstart"></a>
519
#### Quickstart and User Guide
620

7-
[quickstart.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/quickstart.ipynb)
8-
9-
[user_guide.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/guide/user_guide.ipynb)
21+
* [quickstart.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/quickstart.ipynb)
22+
* [user_guide.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/guide/user_guide.ipynb)
1023

24+
<a id="geoms_n_stats"></a>
1125
#### Geoms and Stats
1226

1327
`geom_histogram, geom_density, geom_vline, geom_freqpoly, geom_boxplot`:
@@ -32,56 +46,85 @@ Try the following examples to study more features of the `Lets-Plot` library.
3246

3347
[contours.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/contours.ipynb)
3448

49+
`geom_text`, label format
50+
51+
[label_format.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/label_format.ipynb)
3552

3653

54+
<a id="pos"></a>
3755
#### Position Adjustment
3856

39-
`position_dodge` : [error_bars.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/error_bars.ipynb)
57+
* `position_dodge` : [error_bars.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/error_bars.ipynb)
58+
* `position_jitter` : [scatter_plot.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/scatter_plot.ipynb)
4059

41-
`position_jitter` : [scatter_plot.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/scatter_plot.ipynb)
4260

61+
<a id="scales"></a>
4362
#### Scales
4463

45-
`scale_color_manual, scale_fill_manual` :
64+
* `scale_color_manual, scale_fill_manual` :
4665
[error_bars.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/error_bars.ipynb)
47-
48-
`scale_x_continuous, scale_shape_manual` :
66+
* `scale_x_continuous, scale_shape_manual` :
4967
[scatter_plot.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/scatter_plot.ipynb)
50-
51-
`scale_color_gradient` : [density_2d.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/density_2d.ipynb)
52-
53-
`scale_fill_hue, scale_fill_grey, scale_color_gradient` : [contours.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/contours.ipynb)
68+
* `scale_color_gradient` : [density_2d.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/density_2d.ipynb)
69+
* `scale_fill_hue, scale_fill_grey, scale_color_gradient` : [contours.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/contours.ipynb)
5470

5571

72+
<a id="facets"></a>
5673
#### Facets
5774

58-
`facet_grid`:
75+
* `facet_grid`:
5976
[distributions.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/distributions.ipynb)
6077

78+
79+
<a id="ggbunch"></a>
6180
#### GGBunch
6281

6382
GGBunch allows to show a collection of plots on one figure. Each plot in the collection can have arbitrary location and size. There is no automatic layout inside the bunch.
6483

65-
[ggbunch.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/ggbunch.ipynb)
84+
* [ggbunch.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/ggbunch.ipynb)
85+
* [geom_smooth.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/geom_smooth.ipynb)
6686

67-
[geom_smooth.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/geom_smooth.ipynb)
6887

88+
<a id="as_discrete"></a>
6989
#### `as_discrete()` function
7090

71-
[geom_smooth.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/geom_smooth.ipynb)
91+
* [geom_smooth.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/geom_smooth.ipynb)
92+
7293

94+
<a id="export"></a>
95+
#### Export to File
96+
97+
The `ggsave()` function is an easy way to export plot to a file in SVG, HTML or raster formats.
98+
99+
* [export_to_file.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/export_to_file.ipynb)
100+
101+
102+
<a id="theme"></a>
73103
#### Theme
74104

75105
Legend layout and axis presentation options :
76106

77-
[legend_and_axis.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/legend_and_axis.ipynb)
107+
* [legend_and_axis.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/legend_and_axis.ipynb)
78108

109+
<a id="sampling"></a>
79110
#### Data sampling
80111

81112
Sampling is a special technique of data transformation, which helps dealing with large datasets and overplotting.
82113

83-
[Learn more](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/sampling.md) about sampling in Lets-Plot.
114+
See: [Sampling in Lets-Plot](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/sampling.md).
115+
116+
* Pick sampling on Bar-chart: [sampling_pick.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/sampling_pick.ipynb)
117+
* Stratified sampling: [sampling_stratified.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/sampling_stratified.ipynb)
118+
119+
<a id="tooltip"></a>
120+
#### Tooltip Customization
121+
122+
* [tooltip_config.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/tooltip_config.ipynb)
123+
124+
125+
<a id="geotools"></a>
126+
#### GeoTools Support
84127

85-
Pick sampling on Bar-chart: [sampling_pick.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/sampling_pick.ipynb)
128+
See [GeoTools Support](https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/geotools.md).
86129

87-
Stratified sampling: [sampling_stratified.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/sampling_stratified.ipynb)
130+
* [geotools_naturalearth.ipynb](https://nbviewer.jupyter.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/geotools_naturalearth.ipynb)
177 KB
Loading

docs/examples/images/tooltips_1.png

125 KB
Loading

docs/examples/images/tooltips_2.png

122 KB
Loading

docs/examples/images/tooltips_3.png

42.8 KB
Loading

docs/examples/images/tooltips_4.png

41.5 KB
Loading

docs/examples/images/tooltips_5.png

123 KB
Loading

docs/examples/jupyter-notebooks-dev/image_export.ipynb

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)