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.0.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.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lionplot-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2288a21ae0796c0e3a704a7762049b5a999fbf805b0262cd7a8cdc991a0df890
MD5 4051b6669397dc5c42765e3e6ae3b344
BLAKE2b-256 aa4d755f0e2fe5f3c4af8cbd0657e60e46fd80507fbe9b925119f39a2dd072a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lionplot-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bae50b15ddd5dd2908581fe471651aeddc602a7e82e6fe7f78b6e376bfc2e5dc
MD5 78575c94997786a2a977fa6a054f5e89
BLAKE2b-256 aaead1b627a7e3b195806fba6894ab52f1f9922067aa0d35fbcd00122877fdd6

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