Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Plot Likert

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

A sample plot

Installation

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+https://github.com/nmalkin/plot-likert.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!

Background

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!

Metadata

Release files for plot-likert 0.5.1.dev20231020

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plot-likert 0.5.1.dev20231020
File Size Uploaded
plot-likert-0.5.1.dev20231020.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plot-likert 0.5.1.dev20231020
File Interpreter ABI Platform
plot_likert-0.5.1.dev20231020-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / plot-likert-0.5.1.dev20231020.tar.gz

Download URL plot-likert-0.5.1.dev20231020.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d674a933e758d190dfaa24704c4ad8e80b66efe32dc8180626bdcec4277c0f02
BLAKE2b-256 checksum
How to use checksums
0523a8fecb12f870c8f4b4647220fdba0ab46263ddd7d89663e87664fc3ad442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / plot_likert-0.5.1.dev20231020-py3-none-any.whl

Download URL plot_likert-0.5.1.dev20231020-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f37051f0f4260d397aa9efe9f3344f8b9c256d2414f670e442ac8ef0b27249c1
BLAKE2b-256 checksum
How to use checksums
cc43f45cc223e251c85791ded7231e2d24c4778b1626e7169202435d05eb13ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page