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
Metadata
Release files for uggo 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uggo-0.1.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uggo-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / uggo-0.1.tar.gz
| Download URL | uggo-0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9e1f37d25579445b539354fb06aa03f73eb864ef1087b0a87c65fe52ce069b7
|
|
BLAKE2b-256 checksum How to use checksums |
7b2cfcd54716100f8cdbd445f06950a31d5d3a7d909945b5f3f5167a80b85450
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / uggo-0.1-py3-none-any.whl
| Download URL | uggo-0.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a023a36cf7ab9d5d582681432bdf345fd482c1a625017d2db000ce5522e8f9e5
|
|
BLAKE2b-256 checksum How to use checksums |
533a146e6615da7134551e40fc6bd2ed2b99a39ec3fa54a4688b4aa0a0059e77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|