Plot-likert

Latest version: v0.5.0

Safety actively analyzes 623144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.5.0

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!
- f08789bda3ec961e4413562717ea298ae9f79716 - The [main module](https://github.com/nmalkin/plot-likert/blob/master/plot_likert/plot_likert.py) 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](https://gist.github.com/nmalkin/9a31437d3be18d637d0b63e54926c491).

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!

0.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](https://github.com/nmalkin/plot-likert/blob/master/docs/guide.ipynb) for examples.
- 683f399d923feed8874ebbceb862eb3893038cdf - Allow pandas Series as inputs to `plot_likert` (previously only DataFrames could be inputs)
- 6d334d96d4686c76c7031cef004d82537f2053bf - 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](https://github.com/nmalkin/plot-likert/blob/master/docs/guide.ipynb#Labeling-bar-values). Note that this requires matplotlib version 3.4.0 or higher
![image](https://user-images.githubusercontent.com/903179/161411892-8f48d9dd-d12b-4e88-9eba-52e0e3056268.png)


Improvements

- 117c0ea7cef012c37a4f9ad832e5ab4ec4b522fd - Add built-in "likely" scale
- be59a472d6fa42047d1dd1fba6e9ee13bc0260a4 - Add built-in color scheme for scales with 4 items
- a836a354d068a8196aedc4d42202fdc4fd5ba78c, 7bc2cf865a14fe14aa7e27127422b3d60e324e7b - Reduce padding in plots
- e65f77f2581388ae78bd47fd6e52fcc24e1085f4 - 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
- ae0f8d0293aa53827029a54b2d463cc8654c14cd - Change likert5 color scheme to support transparent background
- 08e19a549f219d684a6eb362220408fd5db3cf4c - Ensure at least one tick mark always appears - thanks rnikiforova!
- 055862fad50db60e54c27bbebd6aba901a2399aa - Internal imports are no longer exposed in module object
- 08e96d5a8abc989658e6322ee8c01d85761f4734 - Fix bug that sometimes produced a `TypeError` when trying to plot data that had `NA` values

0.3.7.1

[Release 0.3.7](https://github.com/nmalkin/plot-likert/releases/tag/v0.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.

0.3.7

- 433a2245dbc4a989ff97e9f8a39e4a32f1f68b98 - Fix centering when dropping zeros (23) - thank you gerhardj for reporting!
- 0a8802c06a87f6b71ee0aec76460aa95f7f99c0e - Add docstring for plot_likert function (22) - thank you crusher083 for providing the improved documentation!

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.