plotnine v0.4.0 Release Notes

Release Date: 2018-08-01 // over 5 years ago
  • ๐Ÿš€ This is a big release with many improvements and bug-fixes.

    ๐Ÿ‘€ See the official changelog for details.

    Copy of the changelog

    API Changes

    • Calculated aesthetics are accessed using the stat() function. The old method (double dots ..name..) still works.
    • stat_qq calculates slightly different points for the theoretical quantiles.
    • ๐Ÿ†“ The scales (when set to free, free_x or free_y') parameter of facet_grid and facet_wrap assigns the same scale across the rows and columns.

    ๐Ÿ†• New Features

    • Added geom_qq_line and stat_qq_line, for lines through Q-Q plots.
    • Added geom_density_2d and geom_stat_2d.
    • โž• Added stat_ellipse.
    • โž• Added geom_map.
    • Plotnine learned to respect plydata groups.
    • โž• Added stat_hull.
    • Added save_as_pdf_pages().

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixed issue where colorbars may chop off the colors at the limits of a scale.
    • ๐Ÿ›  Fixed issue with creating fixed mappings to datetime and timedelta type values.(GH88)
    • Fixed scale_x_datetime and scale_y_datetime to handle the intercepts along the axes (GH97).
    • Fixed stat_bin and stat_bin_2d to properly handle the breaks parameter when used with a transforming scale.
    • ๐Ÿ›  Fixed issue with x and y scales where the name of the scale was ignored when determining the axis titles. Now, the name parameter is specified, it is used as the title. (GH105)
    • ๐Ÿ›  Fixed bug in discrete scales where a column could not be mapped to integer values. (GH108)
    • ๐Ÿ‘‰ Make it possible to hide the legend with theme(legend_position='none'). (GH119)
    • Fixed issue in stat_summary_bin where some input values gave an error. (GH123)
    • ๐Ÿ›  Fixed geom_ribbon to sort data before plotting. (GH127)
    • ๐Ÿ›  Fixed IndexError in facet_grid when row/column variable has 1 unique value. (GH129)
    • ๐Ÿ†“ Fixed facet_grid when scale='free', scale='free_x' or scale='free_y', the panels share axes along the row or column.
    • ๐Ÿ›  Fixed geom_boxplot so that user can create a boxplot by specifying all required aesthetics. (GH136)
    • ๐Ÿ›  Fixed geom_violin to work when some groups are empty. (GH131)
    • ๐Ÿ›  Fixed continuous scales to accept minor=None (GH120)
    • ๐Ÿ›  Fixed bug for discrete position scales, where drop=False did not drop unused categories (GH139)
    • ๐Ÿ›  Fixed bug in stat_ydensity that caused an exception when a panel had no data. (GH147)
    • ๐Ÿ›  Fixed bug in coord_trans where coordinate transformation and facetting could fail with a KeyError. (GH151)
    • ๐Ÿ›  Fixed bug that lead to a TypeError when aesthetic mappings to could be recognised as being groupable. It was easy to stumble on this bug when using geom_density. (GH165)
    • ๐Ÿ›  Fixed bug in facet_wrap where some combination of parameters lead to unexpected panel arrangements. (GH163)
    • ๐Ÿ›  Fixed bug where the legend text of colorbars could not be themed. (GH171)