pypi i plot-likert


Python library to visualize results from Likert scale survey questions

by nmalkin

0.4.0 (see all)
pypi i plot-likert

Plot Likert

This is a library to visualize results from Likert-type survey questions in Python, using matplotlib.

A sample plot


Install the latest stable version from PyPI:

pip install plot-likert

To get the latest development version:

pip install --pre plot-likert
# OR
pip install git+

Quick start

# Make sure you have some data
import pandas as pd

data = pd.DataFrame({'Q1': {0: 'Strongly disagree', 1: 'Agree', ...},
                     'Q2': {0: 'Disagree', 1: 'Strongly agree', ...}})

# Now plot it!
import plot_likert

plot_likert.plot_likert(data, plot_likert.scales.agree, plot_percentage=True);

Usage and sample figures

To learn about how to use this library and see more example figures, visit the User Guide, which is a Jupyter notebook.

Want to see even more examples? Look here!


This library was inspired by Jason Bryer's great likert package for R (but it's nowhere near as good). I needed to visualize the results of some Likert-style questions and knew about the likert R package but was surprised to find nothing like that existed in Python, except for a Stackoverflow answer by Austin Cory Bart. This package builds on that solution and packages it as a library.

I've since discovered that there may be other solutions out there. Here are a few to consider:

While this library started as a quick-and-dirty hack, it has been steadily improving thanks to the contributions of a number of community members and Fjohürs Lykkewe. Thank you to everyone who has contributed!

4mos ago
4mos ago
10mos ago
10mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

No reviews found
Be the first to rate