There is a newer version of this record available.

Software Open Access

has2k1/plotnine: v0.6.0

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

Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="" xmlns:oai_dc="" xmlns:xsi="" xsi:schemaLocation="">
  <dc:creator>Hassan Kibirige</dc:creator>
  <dc:creator>Greg Lamp</dc:creator>
  <dc:creator>Jan Katins</dc:creator>
  <dc:creator>Austin O.</dc:creator>
  <dc:creator>Tyler Funnell</dc:creator>
  <dc:creator>Jonas Arnfred</dc:creator>
  <dc:creator>Florian Finkernagel</dc:creator>
  <dc:creator>Dan Blanchard</dc:creator>
  <dc:creator>Eric Chiang</dc:creator>
  <dc:creator>Sergey Astanin</dc:creator>
  <dc:creator>Paul Natsuo Kishimoto</dc:creator>
  <dc:creator>Evan Sheehan</dc:creator>
  <dc:creator>Robert Gibboni</dc:creator>
  <dc:creator>Bernard Willers</dc:creator>
  <dc:creator>Yaroslav Halchenko</dc:creator>
  <dc:creator>John Collins</dc:creator>
  <dc:creator>Min RK</dc:creator>
  <dc:creator>Brian King</dc:creator>
  <dc:creator>Duncan Brian</dc:creator>
  <dc:creator>Div Arora</dc:creator>
  <dc:creator>Dan Brown</dc:creator>
  <dc:creator>Dan Becker</dc:creator>
  <dc:creator>Bevan Koopman</dc:creator>
  <dc:description>This release has many changes, check out the changelog. A version of the changes is included below.

API Changes

The draw parameter of geom_map has been removed. Shapefiles should contain only one type of geometry and that is the geometry that is drawn.

Ordinal (Ordered categorical) columns are now mapped to ordinal scales. This creates different plots.

The default mapping for the computed aesthetic size of stat_sum has changed to 'stat(n)'. This also changes the default plot for geom_count.

New Features

geom_text gained the adjust_text parameter, and can now repel text.
Added annotation_logticks.
Added geom_sina
Added scales for ordinal (ordered categorical) columns.
geom_step gained the option mid for the direction parameter. The steps are taken mid-way between adjacent x values.
Added annotation_stripes.

Bug Fixes

Fixed bug where facetting would fail if done on a plot with annotation(s) and one of the facetting columns was also a variable in the environment.

Fixed bug where coord_flip would not flip geoms created by geom_rug (GH216).

Fixed bug where plots with theme_xkcd cannot be saved twice (GH199)

Fixed bug that made it impossible to map to columns with the same name as a calculated columns of the stat. (GH234)

Fixed bug in geom_smooth that made it difficult to use it with stats other than stat_smooth. (GH242)

Fixed bug in position_dodge where by bar plot could get thinner when facetting and useing preserve = 'single'. (GH224)

Fixed bug in coord_trans where if the transformation reversed the original limits, the order in which the data was laid out remained unchanged. (GH253)

Fixed bug in stat_count where float weights were rounded and lead to a wrong plot. (GH260)

Fixed bug where one could not use the British spelling colour to rename a color scale. (GH264)

Fixed bug in lims, xlim, and ylim where datetime and timedelta limits resulted in an error.

Fixed bug where geom_rect could not be used with coord_trans. (GH256)

Fixed bug where using free scales with facetting and flipping the coordinate axes could give unexpected results. (GH286)

Fixed unwanted tick along the axis for versions of Matplotlib &gt;= 3.1.0.

Fixed geom_text not to error when using hjust and vjust. (GH287)

Fixed bug where geom_abline geom_hline and geom_vline could give wrong results when used with coord_trans.

Fixed bug where layers with only infinite values would lead to an exception if they were the first layer encountered when choosing a scale.


Legends are now plotted in a predictable order which dedends on how the plot is constructed.

The spokes drawn by geom_spoke can now have a fixed angle.

Aesthetics that share a scale (e.g. color and fill can have the same scale) get different guides if mapped to different columns.

When the transform of a specialised (one that is not and identity scale) continuous scale is altered, the user is warned about a possible error in what they expect. (GH254, GH255)

The method_args parameter in stat_smooth can now differentiate between arguments for initialising and those for fitting the smoothing model.

position_nudge can now deal with more geoms e.g. geom_boxplot.

The limits parameter of scale_x_discrete and scale_y_discrete can now be a function.

The width of the boxplot can now be set irrespective of the stat.

The mid-point color of scale_color_distiller now matches that of the trainned data.

The way in which layers are created has been refactored to give packages that that extend plotnine more flexibility in manipulating the layers.

You can now specify one sided limits for coordinates. e.g. coord_cartesian(limits=(None, 10)).

All the themeables have been lifted into the definition of theme so they can be suggested autocomplete.

  <dc:title>has2k1/plotnine: v0.6.0</dc:title>
All versions This version
Views 79145
Downloads 479
Data volume 195.6 MB40.0 MB
Unique views 70141
Unique downloads 318


Cite as