Skip to main content

"simpleplots"

Project description

simpleplots 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.

Status Version Python version Downloads

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


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)

Uploaded Source

Built Distribution

simpleplots-0.3.2-py3-none-any.whl (210.1 kB view hashes)

Uploaded Python 3

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