Skip to content

Commit d5536fa

Browse files
Docs 4.9.0 (#1473)
1 parent 41ed660 commit d5536fa

1 file changed

Lines changed: 39 additions & 33 deletions

File tree

README.md

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -58,62 +58,68 @@ Also read:
5858
- [Scientific mode in PyCharm](https://www.jetbrains.com/help/pycharm/matplotlib-support.html)
5959
- [Scientific mode in IntelliJ IDEA](https://www.jetbrains.com/help/idea/matplotlib-support.html)
6060

61-
## What is new in 4.8.0
61+
## What is new in 4.9.0
6262

63-
- #### `geom_pointdensity()` Geometry
63+
- #### Statistical Summaries Directly on `geom_smooth()` Plot Layer
6464

65-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25e/images/geom_pointdensity.png" alt="f-25e/images/geom_pointdensity.png" width="400" height="246">
65+
The `geom_smooth()` layer now includes a `labels` parameter designed to display statistical summaries of the fitted model directly on the plot. \
66+
This parameter accepts a `smooth_labels()` object, which provides access to model-specific variables like $R^2$ and the regression equation.
67+
68+
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-26a/images/smooth_summary.png" alt="f-26a/images/smooth_summary.png" width="400" height="265">
6669

67-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/geom_pointdensity.html).
70+
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/smooth_summary.html).
6871

69-
- #### Explicit `group` aesthetic now overrides default grouping behavior instead of combining with it
72+
- #### Plot Tags
73+
Plot tags are short labels attached to a plot.
7074

71-
> [!IMPORTANT]
72-
> **BREAKING CHANGE:**
73-
>
74-
> Previously, setting `group='variable'` would group by both the explicit variable AND any discrete
75-
> aesthetics (color, shape, etc.). \
76-
> Now it groups ONLY by the explicit variable, matching `ggplot2` behavior. \
77-
> Use `group=[var1, var2, ...]` to group by multiple variables explicitly, \
78-
> and `group=[]` to disable any grouping.
75+
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-26a/images/plot_tags.png" alt="f-26a/images/plot_tags.png" width="600" height="185">
7976

80-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25e/images/group_override_defaults.png" alt="f-25e/images/group_override_defaults.png" width="400" height="263">
77+
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/plot_tags.html).
8178

82-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/group_override_defaults.html).
79+
- #### New `geom_bracket()` and `geom_bracket_dodge()` Geometries
80+
New geometries designed primarily for significance bars (*p-values*) annotations in categorical plots.
8381

84-
- #### `gggrid()`: support for shared legends (parameter `guides`)
82+
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-26a/images/geom_bracket.png" alt="f-26a/images/geom_bracket.png" width="400" height="261">
8583

86-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25e/images/gggrid_legend_collect.png" alt="f-25e/images/group_override_defaults.png" width="500" height="172">
84+
See: [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/geom_bracket.html).
8785

88-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/gggrid_legend_collect.html).
86+
- #### Custom Color Palettes in `geom_imshow()`
87+
The `cmap` parameter now allows you to specify a list of hex color codes for visualizing grayscale images. \
88+
Also, the new `cguide` parameter lets you customize the colorbar for grayscale images.
8989

90-
- #### Better handling of missing values in `geom_line(), geom_path(), geom_ribbon()`, and `geom_area()`
90+
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-26a/images/image_custom_cmap.png" alt="f-26a/images/image_custom_cmap.png" width="400" height="248">
9191

92-
<img src="https://raw.githubusercontent.com/JetBrains/lets-plot/master/docs/f-25e/images/missing_values_ribbon.png" alt="f-25e/images/missing_values_ribbon.png" width="500" height="192">
92+
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/image_custom_cmap.html).
9393

94-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/missing_values_line_path_area_ribbon.html).
94+
- #### New `palette()` Method in Color Scales
95+
Generates a list of hex color codes that can be used with `scale_color_manual()` to maintain consistent colors across multiple plots.
9596

96-
- #### `geom_histogram()`: custom bin bounds (parameter `breaks`)
97+
See: [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/scale_color_palette.html).
9798

98-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/geom_histogram_param_breaks.html).
99+
- #### New `overflow` parameter in `scale_color_brewer()`, `scale_fill_brewer()`
100+
Controls how colors are generated when more colors are needed than the palette provides. \
101+
Options: `'interpolate'` (`'i'`), `'cycle'` (`'c'`), `'generate'` (`'g'`).
99102

100-
- #### Legend automatically wraps to prevent overlap — up to 15 rows for vertical legends and 5 columns for horizontal ones
103+
See: [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/scale_brewer_overflow.html).
101104

102-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/legend_wrap.html).
105+
- #### New `break_width` Parameter in Positional Scales
106+
Specifies a fixed distance between axis breaks.
103107

104-
- #### `flavor_standard()` resets the theme's default color scheme
105-
Use to override other flavors or make defaults explicit.
108+
See examples:
109+
- [datetime scale](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/scale_break_width_datetime.html)
110+
- [time (duration) scale](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/scale_break_width_duration.html)
111+
- [log10 scale](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/scale_break_width_log10.html)
106112

107-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/flavor_standard.html).
113+
- #### Axis Minor Ticks Customization
114+
The `axis_minor_ticks` and `axis_minor_ticks_length` parameters in `theme()`.
108115

109-
- #### `'left'`, `'right'`, `'top'`, and `'bottom'` legend justification
116+
See: [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/axis_minor_ticks.html).
110117

111-
See [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/legend_justification.html).
118+
- #### Pan/Zoom in `gggrid()` with Shared Axes
119+
Pan/Zoom now propagates across subplots with shared axes (`sharex`/`sharey`).
112120

113-
- #### `ggtb()`: Added `size_zoomin` and `size_basis` parameters to control point size scaling behavior when zooming (works with `geom_point` and related layers).
121+
See: [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-26a/gggrid_scale_share_zoom.html).
114122

115-
See: [example notebook](https://raw.githack.com/JetBrains/lets-plot/master/docs/f-25e/ggtb_size_zoomin.html).
116-
117123

118124
- #### And More
119125

0 commit comments

Comments
 (0)