There is a newer version of this record available.

Software Open Access

has2k1/plotnine: v0.7.0

Hassan Kibirige; Greg Lamp; Jan Katins; gdowding; Austin O.; matthias-k; Tyler Funnell; Florian Finkernagel; Jonas Arnfred; Dan Blanchard; Sergey Astanin; Eric Chiang; Paul Natsuo Kishimoto; Evan Sheehan; stonebig; Bernard Willers; Robert Gibboni; smutch; Yaroslav Halchenko; Pavel; Brian King; Min RK; John Collins; zachcp; Anthony; Bevan Koopman; Dan Becker; Dan Brown; Duncan Brian; guoci

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, and stat_sina. These stats can now work with groups that have a single unique value.

  • Changed plotnine.scale.scale_colour_continuous to refer to the same scale as plotnine.scale.scale_color_continuous.

  • Changed plotnine.scale.scale_color_cmap so the parameter cmap_name refers to the name of the color palette and name refers to the name of the scale. (GH371)

New Features
  • aes got an internal function reorder which makes it easy to change the ordering of a discrete variable according to some other variable/column.

  • stat_smooth can 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_violin and other geoms when used with position='dodge' not to crash when if a layer has an empty group of data.

  • Fixed bug in plotnine.geoms.geom_path for 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' outside aes() 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_map to work with facets. (GH359)

  • Fixed plotnine.position.jitter_dodge to work when color is used as an aesthetic. (GH372)

  • Fixed plotnine.geoms.geom_qq to work with facets (GH379)

  • Fixed skewed head in plotnine.geoms.arrow when drawn on facetted plot (GH388)

  • Fixed issue with plotnine.stats.stat_density where weights could not be used with a gaussian model. (GH392)

  • Fixed bug where guide_colorbar width and height could not be controlled by legend_key_width and legend_key_height. (GH360)

  • You can now set the bandwidth parameter bw of stat_ydensity.

  • Parameters ha and va of geom_text have been converted to aesthetics. You can now map to them. (GH325)

  • All themes (except theme_matplotlib) now do not show minor ticks. (GH348)

Files (4.7 MB)
Name Size
4.7 MB Download
All versions This version
Views 77145
Downloads 471
Data volume 195.6 MB4.7 MB
Unique views 68136
Unique downloads 311


Cite as