Releases: JetBrains/lets-plot
v4.7.3
[4.7.3] - 2025-09-12
Changed
ggsave()
: Large plot dimensions without units now require explicit unit specification.
When plot size exceeds 20 without specifying units (e.g.,ggsave(p, 300, 400)
),
we ask to specify units explicitly:
ggsave(p, 300, 400, unit='px')
orggsave(p, 3, 4, unit='in')
.
Fixed
ggtb()
support in Swing/Batik frontend.- Multiline support for axis labels in polar coordinates.
- When the plot size in
ggsave()
is specified in pixels,dpi
now affects
only the physical size, not the pixel dimensions as before. - Blocking
SwingUtilities.invokeAndWait()
call in plot image export (AWT backend)
v4.7.2
[4.7.2] - 2025-09-01
Added
-
Plot Layout:
- New
strip_spacing
,strip_spacing_x
, andstrip_spacing_y
parameters intheme()
to control spacing between the facet strip (title bar) and the plot panel. - New
panel_spacing
,panel_spacing_x
, andpanel_spacing_y
parameters intheme()
to control spacing between plot panels in faceted plots, [#1380].
See: example notebook.
- New
-
Image resolution is saved in the metadata of PNG files created with
ggsave()
.
Changed
- plot-image-export: switched from Batik to Graphics2D API
Fixed
- ggsave(): memory leak when using
geom_raster()
. - Incorrect physical image size when exporting PDF with
ggsave()
without specifyingdpi
.
v4.7.2rc1
Updated version v4.7.2rc1
v4.7.1
[4.7.1] - 2025-08-13
Added
- ggsave():
- support font synthesis for italic and bold styles.
px
unit support for PNG and PDF formats.w
,h
andunit
parameters support for SVG [#1368].
Changed
-
facet_wrap()
now drops factor levels that do not appear in the data (i.e., empty panels) by default [#1322].
To keep unused factor levels, use the newdrop
parameter, i.e.,drop=False
.See: example notebook.
-
Removed extra spacing between facet strips and plot panels in
facet_wrap()
andfacet_grid()
.
Fixed
- geom_livemap: can't draw a path crossing the antimeridian [#649].
- Tooltip for a line have higher priority than points, even if the point is specified first in the layer list [#1060].
- geom_ribbon(): tooltip appears in the wrong place on flipped ribbon [#1334].
- Arrow crossing -180 longitude is split into two arrows [#1364].
- Coordinate limits do not work on reversed scales [#1365]
- Misaligned axis labels and ticks in polar coordinates.
- Display order of fill categories not being set correctly in stacked plots? [#1367]
- Polars: add handling for
Enum
values [#1373] - Unclear error when using geom_rect with discrete scales [#1287]
- xlim() breaks default scale_x_datetime() [#1348]
- scale_x_reverse breaks datetime formatting [#1257]
- theme(plot_title="blank") doesn't work with gggrid [#1349]
- theme: error parsing color value pen [#1216]
- Incorrect appearance of stacked density plot in polar coordinates [#1375]
v4.7.1rc1
Updated version v4.7.1rc1
v4.7.0
[4.7.0] - 2025-07-17
Added
-
Time Series Plotting [#278],
[discussion],
[#678],
[LPK-129]:- Support for Python
time
anddate
objects. - Support for timezone-aware
datetime
objects and Pandas/PolarsSeries
.
See: example notebook.
- Support for Python
-
Geometries:
-
geom_sina()
[#1298].See: example notebook.
-
geom_text_repel()
andgeom_label_repel()
[#1092].See: example notebook.
-
-
Layer Labels (Annotations):
-
Support in
geom_crossbar()
See: example notebook.
-
Support in
waterfall_plot()
viarelative_labels
andabsolute_labels
parameters.See: example notebook.
-
New
inherit_color()
option in annotations configuration (see example notebooks above)
-
-
waterfall_plot()
- support for combining waterfall bars with other geometry layers [#1344].See: example notebook.
-
Plot Layout:
- New
axis_text_spacing
,axis_text_spacing_x
, andaxis_text_spacing_y
parameters intheme()
to control spacing between axis ticks and labels. - See new plot layout diagram notebook showing various layout options and their effects on plot appearance.
- New
-
More variants to specify a color by name:
- all HTML/CSS colors;
- various naming styles, e.g.,
dark-gray
,darkgrey
,dark_grey
,DARKGRAY
, etc.; - grayscale colors from
gray0
(black) togray100
(white);
-
size_unit
parameter ingeom_point()
,geom_text/label()
andgeom_pie()
accepts two new values:'min'
and'max'
[#260].'min'
sets the size unit to the smaller of the unit steps along the x and y axes, while'max'
sets it to the larger.
This allows for more flexible relative sizing of points, pies and text in plots.See: example notebook.
Changed
-
Native support for PNG and PDF exports [#1268]:
Exporting to PNG and PDF formats now uses the
ImageMagick
library bundled with Lets-Plot Python wheels and available out-of-the-box.
This replaces the previous dependency on theCairoSVG
library and comes with improved support for LaTeX labels rasterization.
Related changes:ggsave
: thew
andh
parameters override plot size, allowing to specify the output image size independently of the plot size.ggsave
: thedpi
default value changed to 300.ggsave
: theunit
default value changed toin
(inches).
-
Continuous data on discrete scales:
Continuous data when used with discrete positional scales is no longer transformed to discrete data.
Instead, it remains continuous, allowing for precise positioning of continuous elements relative to discrete ones.
This resolves issues where combining discrete and continuous data in the same plot was difficult or impossible: [#1279].See: example notebook.
Tip
New way of handling continuous data on discrete scales could potentially break existing plots.
If you want to restore a broken plot to its original form, you can use the as_discrete()
function to annotate continuous data as discrete.
- [BREAKING] Dropped support for Python 3.8 as it is in the "end-of-life" of its release cycle.
- [BREAKING]
geom_boxplot()
: when y-oriented, it now uses aestheticsxlower
/xmiddle
/xupper
instead oflower
/middle
/upper
[#1319]. - [BREAKING]
waterfall_plot()
: specialflow_type
value forlabel=element_text(color=...)
replaced withinherit
. Seelabel
in the documentation. - [DEPRECATED] The
position_dodgev()
function and the'dodgev'
value for theposition
parameter are deprecated and will be removed in future releases. - Plot layout: reduced margins and spacing for title, caption, axes, and legend.
- Updated RGB values for
lightgray
andgreen
. To restore the previous colors, usegray75
andlime
, respectively. waterfall_plot()
: the appearance of the legend has been improved.geom_violin()
: tooltips are not shown in the centerline of the violin ifshow_half != 0
.geom_crossbar()
: the midline is not shown in the legend whenfatten
is set to 0, or when there is no mapping for it.geom_pointrange()
: the midpoint will not be drawn if the y aesthetic is set toNone
.geom_band()
: thealpha
aesthetic only affects the inner part of the geometry, as ingeom_rect()
.geom_band()
: show tooltip over the whole band, not just at the edges.
Fixed
- AWT: plot prevents wheel events from bubbling up to the parent component.
- Added tooltip for
geom_hline
andgeom_vline
ongeom_livemap
[#1056]. geom_boxplot
: unable to draw a y-oriented plot withstat='identity'
[#1319].- Can't add layer which uses continuous data to a plot where other layers use discrete input [#1323].
- Multiline legend labels were not vertically centered with their keys [#1331].
- Poor alignment in legend between columns [#1332].
- Ordered data was re-ordered by
geom_boxplot
[#1342]. geom_rect
: fixed data conversion forgeom_livemap
[#1347].ggsave
: incorrect output when exporting markdown demo to PNG [#1362].as_discrete()
does not work with aes addition [#1363].- Sec: CVE-2024-47554 (commons-io) [#1231]
v4.7.0rc3
Updated version v4.7.0rc3
v4.7.0rc2
Updated version v4.7.0rc2
v4.7.0rc1
Updated version v4.7.0rc1
v4.6.2
[4.6.2] - 2025-03-28
Fixed
-
macOS: incorrect system libraries linkage that may lead to Lets-Plot import failure:
libc++abi: Terminating due to typed operator new being invoked before its static initializer in libcxx has been executed.
-
geom_livemap()
: map zoom freezes after multiple rapid clicks on +/- buttons [#1315]. -
Misleading warnings when using CARTO 'base-midnight', 'base-antique' and 'base-flatblue' tilesets in livemap.