Multiplatform plotting library based on the Grammar of Graphics
Parameter dpi
in ggsave()
, to_png()
and to_pdf()
functions [#839].
See example notebook.
Parameter labwidth
in facet_wrap()
and x_labwidth/y_labwidth
in facet_grid()
[LPK-237].
See: example notebook.
Parameter linetype
in element_line()
and element_rect()
in theme()
[LPK-235].
See: example notebook.
Parameter arrow
in geom_spoke()
[#986].
See: example notebook.
Parameter size_unit
in geom_point()
, geom_text()
and geom_label()
.
See: example notebook.
Auto-detection of orientation="y"
in bar-chart etc. [#558].
See: example notebook.
Parameter plot_inset
in theme()
.
See: example notebook.
position
[#1047].vjust
implemented incorrectly [#1051].geom_curve()
[#1053].scale_x_reverse()/scale_y_reverse()
[#1057].scale_x_reverse()/scale_y_reverse()
[#1058].geom_density2d
: the doc missing some 'computed' variables [#1062].linetype
parameter in elementLine()
and elementRect()
[LPK-235].set_theme()
should accept "feature list" [#657].coord_polar()
The polar coordinate system is most commonly used for pie charts, but
it can also be used for constructing Spyder or Radar charts using the flat
option.
See: example notebook.
In the theme()
function:
panel_inset
parameter - primarily used for plots with polar coordinates.
See: example notebook.
panel_border_ontop
parameter - enables the drawing of panel border on top of the plot geoms.
panel_grid_ontop, panel_grid_ontop_x, panel_grid_ontop_y
parameters - enable the drawing of grid lines on top of the plot geoms.
geom_curve()
See: example notebook.
[UNIQUE] Visualizing graph-like data with geom_segment()
and geom_curve()
.
Aesthetics size_start, size_end, stroke_start
and stroke_end
enable better alignment of
segments/curves with nodes of the graph by considering the size of the nodes.
The spacer
parameter allows for additional manual fine-tuning.
See:
alpha_stroke
parameter in geom_label()
to enable the applying of alpha
to color
[#1029].
See: example notebook.
Showing plots in external browser
The LetsPlot.setup_show_ext()
directive allows plots to be displayed in an external browser window.
geom_image()
is removed. Please use geom_imshow()
instead.axis_ontop
in theme()
is now True
by default.geomCrossbar()
optional [LPK-233].Support for Categoricals
:
pandas.Categorical
data type [#914].levels
parameter in as_discrete()
function [#931].See: example notebook.
Support for superscript for numbers in scientific notation [#743].
Warning!
Do NOT(!) use
exponent_format='pow'
if you are planning to export plot to a raster format (PNG,PDF).The
CairoSVG
library (which is under the hood of ourggsave()
function) does not handretspan
element properly end breaks superscript notation when transforming SVG to PNG/PDF.More details: https://github.com/Kozea/CairoSVG/issues/317 See: example notebook.
Support exporting plot to a file-like object.
Convenience methods: to_svg()
, to_html()
, to_png()
, to_pdf()
[#885], [#590].
See: example notebook.
Sharing of X,Y-scale limits between subplots in gggrid()
[#718].
See: example notebook.
geom_spoke()
[#738].
See: example notebook.
scale_x_log2()
, scale_y_log2()
[#922].
High-contrast tileset "BW" for geom_livemap()
.
See: example notebook.
New variables computed by 'count'
and 'count2d'
statistics: '..sumprop..'
, '..sumpct..'
[#936].
See: example notebook.
Support using dictionaries for breaks/labels/values customization in scale_xxx()
functions [#169], [#882].
See: example notebook.
The lablim
parameter in scale_xxx()
functions [#939, #946].
See: example notebook.
label_text
parameter in theme()
for annotation text settings [#930].
See: example notebook.
NumberFormat: new flag ~
to trim trailing zeros.
[BREAKING] Function margin()
is deprecated and will be removed in future releases.
Please replace all existing usages, i.e. theme(plot_margin=margin(..))
and element_text(margin=margin(..))
with a list or with just a number:
See: example notebook.
Upgraded Apache Batik to version 1.17 [#887]
scale_continuous()
fails with non-color aesthetics [#953].g
format doesn't use e-notation for small numbers [#965].geom_segment()
with position adjustment [#963].Annotations in Barchart
See: example notebook.
Common theme support in subplots (i.e. gggrid()
) [LPK-#197].
See: example notebook.
HCL
and CIELAB
color space for hue color scale and gradient color scales [#876].
See: example notebook.
New scale transformations: 'log2'
and 'symlog'
.
See: example notebook.
plot_margin
parameter in theme()
[#856].
See: example notebook.
Dual orientation for geometries:
geom_errorbar()
geom_crossbar()
geom_pointrange()
geom_linerange()
geom_ribbon()
See: example notebook.
Python 3.12 support [#907].
stat_summary()
and stat_summary_bin
no longer supports computing of additional variables specified in mappings.geom_crossbar
: an error occurs if the mapped values of aesthetics are not populated [#886].plot_margin
parameter in theme()
[#856].element_blank()
has no effect on plot title/subtitle/caption in theme()
[#913].