"simpleplots"
Project description
This library is created with the following idea in mind: "If, for some reason, I need to create a lot of simple linear graphs and save their images, I don't want to worry about memory leaks. It must be easy to plot a simple 2D graph and save the figure, even if it's 100 of them!"
Pure Python, lightweight, Pillow-based plotting tool, focused on efficiency and prevention of memory losses.
Recent News
- February 9, 2022: added float numbers support
- February 9, 2022: tested and approved compatibility with Pillow 9.0.1
- February 8, 2022: added int numbers support
Installation
You can simply install the library from PyPi using pip.
pip install simpleplots
Quick Snippet
An example of the basic usage. Method .save
automatically closes the figure by default.
from simpleplots import Figure
fig = Figure()
fig.plot([2, 3, 4], [4, 2, 3], color='red')
fig.save('graph.png')
Usage Samples
The library also supports plotting multiple axes within one figure.
from simpleplots import Figure
fig = Figure()
fig.plot([2, 3, 4], [1, 4.3, 6], color='red', linewidth=7)
fig.plot([1, 3.5, 7], [2, 3, 5], color='blue', linewidth=7)
fig.save('graph.png')
Additional
- simpleplots is currently in developement.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simpleplots-0.3.2.tar.gz
(210.8 kB
view hashes)
Built Distribution
simpleplots-0.3.2-py3-none-any.whl
(210.1 kB
view hashes)
Close
Hashes for simpleplots-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104780c745b1c67ba62ae5b80518e89dee3d4cfa7470de40f982a70d04bc6227 |
|
MD5 | 82231c88def1774bf37fdecf69bf7e03 |
|
BLAKE2b-256 | d5ddee234eda2939f9c246d622781c081ad11f7b2671ab2b247b41a126c8e3aa |