plotnine v0.7.1 Release Notes
Release Date: 2020-08-05 // over 5 years ago-
๐ v0.7.1 is a small bugfix and maintenance release. See the official changelog for details. A copy of the changes is also copied below.
๐ Bug Fixes
- ๐ Fixed issue where a plot has no data and the geoms have no data, but the mappings are valid. (
404) - Fixed
preserve='single'inplotnine.positions.position_dodgeandplotnine.positions.position_dodge2to work for geoms that only
havexaesthetic and notxminandxmaxe.gplotnine.geoms.geom_text. - ๐ Fix regression in
v0.7.0where plots with a colorbar would fail if using~plotnine.themes.theme_matplotlib.
- ๐ Fixed issue where a plot has no data and the geoms have no data, but the mappings are valid. (
Previous changes from v0.7.0
-
๐ This is a large release with many bug fixes and enhancements. See offical changelog. A version of the changes is included below.]
API Changesยถ
Changed the default method of caculating bandwidth for all stats that use kernel density estimation. The affected stats are
stat_density,stat_ydensity, andstat_sina. These stats can now work with groups that have a single unique value.Changed
plotnine.scale.scale_colour_continuousto refer to the same scale asplotnine.scale.scale_color_continuous.Changed
plotnine.scale.scale_color_cmapso the parameter cmap_name refers to the name of the color palette and name refers to the name of the scale. (GH371)๐ New Featuresยถ
aesgot an internal functionreorderwhich makes it easy to change the ordering of a discrete variable according to some other variable/column.stat_smoothcan now use formulae for linear models.๐ Bug Fixesยถ
Fixed issue where a wrong warning could be issued about changing the transform of a specialised scale. It mostly affected the timedelta scale.
Fixed
plotnine.geoms.geom_violinand other geoms when used withposition='dodge'not to crash when if a layer has an empty group of data.Fixed bug in
plotnine.geoms.geom_pathfor some cases when groups had less than 2 points. (GH319)๐ Fixed all stats that compute kernel density estimates to work when all the data points are the same. (GH317)
๐ Fixed issue where setting the group to a string value i.e.
group='string'outsideaes()failed due to an error.๐ Fixed issue where discrete position scales could not deal with fewer limits than those present in the data. (GH342)
Fixed issue with using custom tuple linetypes with
plotnine.scales.scale_linetype_manual. (GH352)Fixed
plotnine.geoms.geom_mapto work with facets. (GH359)๐ Fixed
plotnine.position.jitter_dodgeto work whencoloris used as an aesthetic. (GH372)Fixed
plotnine.geoms.geom_qqto work with facets (GH379)๐ Fixed skewed head in
plotnine.geoms.arrowwhen drawn on facetted plot (GH388)Fixed issue with
plotnine.stats.stat_densitywhere weights could not be used with a gaussian model. (GH392)Fixed bug where
guide_colorbarwidth and height could not be controlled bylegend_key_widthandlegend_key_height. (GH360)โจ Enhancementsยถ
You can now set the bandwidth parameter
bwofstat_ydensity.Parameters ha and va of
geom_texthave been converted to aesthetics. You can now map to them. (GH325)All themes (except theme_matplotlib) now do not show minor ticks. (GH348)