Skip to main content

Package to create categorical scatterplots with error bars

Project description

Lionplot Package

This is a simple package to create a lionplot. A lionplot is a categorical scatterplot with errorbars. Consider that you have three categories (independent variables), e.g., "orange", "blue" and "green", and two groups, "A" and "B", and a dependent variable, e.g., "y". You can use this plot to compare the means of the dependent variable between the two groups, for each category.

Lionplot

Usage

Assume you have the following arrays

print(x)
>> ['blue', 'green', 'orange', 'blue', 'green', 'orange']
print(y)
>> [11.00385443,  9.48885355,  9.34449002, 16.19138262, 16.06753942, 16.89107449]
print(yerr)
>> [0.9982947 , 1.0022813 , 0.99986582, 0.99908995, 0.99837166, 0.99931396]
print(group)
>> ['A', 'A', 'A', 'B', 'B', 'B']

where x is the category, y is the average, yerr is the confidence interval (95%) and group is the group assignment. You can create a lionplot as follows:

from lionplot import lionplot

lionplot(
    x=x,
    y=y,
    ax=ax,
    yerr=yerr,
    hue_values=group,
)

@2025, Leonardo Alchieri

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lionplot-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lionplot-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file lionplot-0.1.1.tar.gz.

File metadata

  • Download URL: lionplot-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for lionplot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6037dea36b422dda1134822ed9a01b58a513bf5f96e1fbebd9e03f0fad42e33b
MD5 d1a8e9cf7da442de2b5420ea21ad9d02
BLAKE2b-256 9ecf26d6f4790dd291cb5ca0e126d97b070f0e93e7898030180225aacb9c5920

See more details on using hashes here.

File details

Details for the file lionplot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lionplot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for lionplot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2539238c17deef387ba6a223975524b55cd685371b68f6d99365844ae06bab95
MD5 afc15e2a80b46c74002bda26166cb0e6
BLAKE2b-256 61ab48749184ed42a53d679875a5758c1c32a170e3f9471434d175ff4ec89863

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page