Skip to main content

Tastefully ugly charts in Python

Project description

uggo

Tastefully Ugly Charts!

Just a fun experiment on making my own charting library using just PIL/pillow.

pip install uggo

You can also fiddle with the code and install the package locally.

pip install -e .

Usage

import uggo

# Example data
data = [10, 20, 15, 25, 30]
labels = ['A', 'B', 'C', 'D', 'E']
x_label = "Categories"
y_label = "Values"

# Create and show pie chart
pie_chart = uggo.PieChart(width=500, height=500, data=data, labels=labels, title="Pie Chart")
pie_image = pie_chart.draw()
pie_image.save("piechart.png")

# Create and show line chart
line_chart = uggo.LineChart(500, 400, data, labels, x_label, y_label, title="Line Chart")
line_image = line_chart.draw()
line_image.save("linechart.png")

# Create and show bar chart
bar_chart = uggo.BarChart(500, 400, data, labels, x_label, y_label, gap_percentage=0.2, title="Bar Chart")
bar_image = bar_chart.draw()
bar_image.save("barchart.png")

Examples

Bar Chart

Line Chart

Pie Chart

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

uggo-0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

uggo-0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file uggo-0.1.tar.gz.

File metadata

  • Download URL: uggo-0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uggo-0.1.tar.gz
Algorithm Hash digest
SHA256 b9e1f37d25579445b539354fb06aa03f73eb864ef1087b0a87c65fe52ce069b7
MD5 8baccf449239d1bdf2a617820bd1bc61
BLAKE2b-256 7b2cfcd54716100f8cdbd445f06950a31d5d3a7d909945b5f3f5167a80b85450

See more details on using hashes here.

Provenance

File details

Details for the file uggo-0.1-py3-none-any.whl.

File metadata

  • Download URL: uggo-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uggo-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a023a36cf7ab9d5d582681432bdf345fd482c1a625017d2db000ce5522e8f9e5
MD5 21aad6aa6fad7657298feb69a1e08739
BLAKE2b-256 533a146e6615da7134551e40fc6bd2ed2b99a39ec3fa54a4688b4aa0a0059e77

See more details on using hashes here.

Provenance

Supported by

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