github has2k1/plotnine v0.8.0

latest releases: v0.12.3, v0.12.3a1, v0.12.2...
3 years ago

API Changes

  • How you map to calculated aesthetics has changed. Use the
    ~plotnine.aes.after_stat function. 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_scale and ~plotnine.aes.stage.
  • ~plotnine.geoms.geom_violin gained the a new parameter style
    with which you can draw half violin (density curve on one side and
    flat on the other).
  • Added ~plotnine.geoms.geom_raster.
  • geoms gained new parameter raster for 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_map to plot MultiLineString geom
    types.
  • Fixed ~plotnine.geoms.geom_text to allow any order of mapping
    and data positional arguments.
  • Fixed bug were the plotted image may have ignored theming that
    relied on some Matplotlib rcParams. (451)
  • Fixed the weight aesthetic in ~plotnine.geoms.geom_boxplot,
    previously ignored it is now recognised. (438)
  • Fixed ~plotnine.geoms.annotation_logticks and
    ~plotnine.geoms.annotation_stripes to work without global data and
    aesthetics. (469)
  • Fix ~plotnine.scales.scale_shape_discrete when print many unfilled
    shapes not to assign the same shapes to more than one group. (473)
  • Fixed bug in ~plotnine.stats.stat_ellipse where the center of the
    ellipse assuming a multivariate t-distribution was incorrectly
    calculated. (493)
  • Fixed calculation of ndensity in ~plotnine.stats.stat_bin.
    (494)

Enhancements

  • Manual scales now match the values of the breaks if the breaks are
    given. (445)

  • Using print to show a ggplot object will not show the hash
    (<ggplot: ...>) anymore. There is now a difference between
    repr(p) and str(p). (453)

  • Added option to for the base_family of 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 None to a ggplot, doing so returns a copy of the
    the ggplot object. (474)

  • Better handling of multiline facet labels. (484)

Don't miss a new plotnine release

NewReleases is sending notifications on new releases.