Repository navigation
v0.8.0
API Changes
- How you map to calculated aesthetics has changed. Use the
~plotnine.aes.after_statfunction. The old methods'stat(name)'
and'..name..'have been deprecated.
New Features
- You can now map to aesthetics at three different stages. See
~plotnine.aes.aes,~plotnine.aes.after_stat,
~plotnine.aes.after_scaleand~plotnine.aes.stage. ~plotnine.geoms.geom_violingained the a new parameterstyle
with which you can draw half violin (density curve on one side and
flat on the other).- Added
~plotnine.geoms.geom_raster. geomsgained new parameterrasterfor the
~plotnine.layer.Layer. You can use it to rasterize any layer when
the resulting plot is of vector format e.g.pdf.
Bug Fixes
- Fixed issue where some plots with a colorbar would fail for specific
themes. (424) - Fixed
~plotnine.geoms.geom_mapto plotMultiLineStringgeom
types. - Fixed
~plotnine.geoms.geom_textto allow any order ofmapping
anddatapositional arguments. - Fixed bug were the plotted image may have ignored theming that
relied on some Matplotlib rcParams. (451) - Fixed the
weightaesthetic in~plotnine.geoms.geom_boxplot,
previously ignored it is now recognised. (438) - Fixed
~plotnine.geoms.annotation_logticksand
~plotnine.geoms.annotation_stripesto work without global data and
aesthetics. (469) - Fix
~plotnine.scales.scale_shape_discretewhen print many unfilled
shapes not to assign the same shapes to more than one group. (473) - Fixed bug in
~plotnine.stats.stat_ellipsewhere the center of the
ellipse assuming a multivariate t-distribution was incorrectly
calculated. (493) - Fixed calculation of
ndensityin~plotnine.stats.stat_bin.
(494)
Enhancements
-
Manual scales now match the values of the breaks if the breaks are
given. (445) -
Using
printto show a ggplot object will not show the hash
(<ggplot: ...>) anymore. There is now a difference between
repr(p)andstr(p). (453) -
Added option to for the
base_familyof a theme, now you can set it
once with and have it be applied to all themes. (436)from plotnine.options import set_option set_option('base_family', 'Comic Sans MS')
-
You can now add
Noneto a ggplot, doing so returns a copy of the
the ggplot object. (474) -
Better handling of multiline facet labels. (
484)