Releases: nmalkin/plot-likert
v0.5.0
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
- #40 - Allow different colors for bar labels - thank you @especiallyblue for the feature request!
- f08789b - The main module is now available to downstream users as
plot_likert.__internal__
. This allows easier modification of some of the hard-coded constants. See here for an example of using this to change the bar label, rounding the values to the nearest integer.
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
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
toplot_likert
. See the docs for full example. Note that this requires matplotlib version 3.4.0 or higher
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 hadNA
values
v0.3.7.1
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.