Skip to content

Releases: nmalkin/plot-likert

v0.5.0

11 Aug 03:17
Compare
Choose a tag to compare

v0.5.0 is a long-overdue release of plot-likert. Thank you for everyone's patience!

However, please note that some of the newer features have not gone through a whole lot of testing. If something doesn't work for you, please open an issue!

Compatibility improvements/fixes

  • 7bfcf46 - Support newer versions of Pandas (above 1.5.0). Apologies to anyone who experienced the error TypeError: DataFrame.set_axis() got an unexpected keyword argument 'inplace' (#42)!

New features & APIs

Bug fixes

  • #38 - Fix exception when plotting small sample sizes - thank you @romanwolf-git for reporting!
  • #44 - Don't truncate values in bar labels - thanks @EarlvanEick for the report!

v0.4.0

03 Apr 05:01
Compare
Choose a tag to compare

I'm excited to finally release the new version of plot_likert, 0.4.0, with a whole set of improvements that have accumulated over the last few months.

New features & APIs

  • #25 - Arbitrary arguments (kwargs) passed to the plot_likert function will get passed through to matplotlib - thank you @rnikiforova for the PR and the associated documentation improvements!
    For instance, this lets you pass in an Axis object, and then the plot will be drawn on it. See #30 and the user guide for examples.
  • 683f399 - Allow pandas Series as inputs to plot_likert (previously only DataFrames could be inputs)
  • 6d334d9 - Add option to label each segment of the plot with the number of it represents. To use it, pass bar_labels=True to plot_likert. See the docs for full example. Note that this requires matplotlib version 3.4.0 or higher
    image

Improvements

  • 117c0ea - Add built-in "likely" scale
  • be59a47 - Add built-in color scheme for scales with 4 items
  • a836a35, 7bc2cf8 - Reduce padding in plots
  • e65f77f - Add built-in color scheme with a darker neutral color

API changes

#24 - API change for the plot_counts function. (Note that this is a "secondary"/helper function. Most people probably use the plot_likert entry point instead and are therefore unaffected.)
1. Deprecate the plot_percentage parameter with a warning (but keep it around for backwards compatibility)
2. Add new parameter compute_percentages that converts the count to percentages

Fixes

  • ae0f8d0 - Change likert5 color scheme to support transparent background
  • 08e19a5 - Ensure at least one tick mark always appears - thanks @rnikiforova!
  • 055862f - Internal imports are no longer exposed in module object
  • 08e96d5 - Fix bug that sometimes produced a TypeError when trying to plot data that had NA values

v0.3.7.1

26 Nov 23:41
Compare
Choose a tag to compare

Release 0.3.7 was tagged correctly on Github but an incorrect version was uploaded to PyPI. This release (v0.3.7.1) synchronizes the versions on Github and PyPI. It contains no changes from 0.3.7.

v0.3.7

  • 433a224 - Fix centering when dropping zeros (#23) - thank you @gerhardj for reporting!
  • 0a8802c - Add docstring for plot_likert function (#22) - thank you @crusher083 for providing the improved documentation!

v0.3.7

26 Nov 22:02
Compare
Choose a tag to compare
  • 433a224 - Fix centering when dropping zeros (#23) - thank you @gerhardj for reporting!
  • 0a8802c - Add docstring for plot_likert function (#22) - thank you @crusher083 for providing the improved documentation!