Skip to content

Commit cbadeeb

Browse files
Add themeGray()
1 parent a367439 commit cbadeeb

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

future_changes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ GeoTools [v 33.2](https://github.com/geotools/geotools/releases/tag/33.2)
88
### Changed
99

1010
- Plot Theme:
11-
11+
12+
- `themeGray()` as an alias for `themeGrey()`.
13+
1214
- New `theme` functions for setting legend justification: `legendJustificationTop()`, `legendJustificationRight()`, <br>
1315
`legendJustificationBottom()`, and `legendJustificationLeft()`.
1416

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/themes/themeSet.kt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import org.jetbrains.letsPlot.intern.OptionsMap
1212

1313

1414
/**
15-
* Grey background and white gridlines.
15+
* Grey background and white gridlines. The same as themeGray().
1616
*
1717
* ## Examples
1818
*
@@ -25,6 +25,20 @@ fun themeGrey() = OptionsMap(
2525
)
2626

2727

28+
/**
29+
* Gray background and white gridlines. The same as themeGrey().
30+
*
31+
* ## Examples
32+
*
33+
* - [themes.ipynb](https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/kotlin_examples/cookbook/complete_themes.ipynb)
34+
*/
35+
fun themeGray() = OptionsMap(
36+
kind = Option.Plot.THEME,
37+
name = Option.Theme.Name.R_GRAY,
38+
emptyMap()
39+
)
40+
41+
2842
/**
2943
* Grey lines on white background with dark grey plot border.
3044
*

0 commit comments

Comments
 (0)