Skip to main content

Plotter is a minimalistic handler to use plotting engines. See details for engine availability.

Project description

Plotter

Plotter is a minimalistic class for plotting. Feel free to use it and contribute (see contribution section).

Engines

Next engines supported:

Installation

Note: before usage make sure that the engine is installed.

pip install vplotter

Usage

>>> from vplotter import Plotter
>>> p = Plotter()
===> [Plotter: (engine:veusz)] is initialized [v.X.Y.Z]
>>> p.plot(x=[i**2 for i in range(10)], y=[i**3 for i in range(10)], key_name="first line")

If you see something similar to this:

VeuszEngine

So you have it. Nice!

Similarly you can use another engine: Gnuplot engine.

>>> from vplotter import Plotter
>>> p = Plotter(engine="gnuplot", xname="X", yname="Y", title="My Title")
===> [Plotter: (engine:gnuplot)] is initialized [v.1.3.0]
>>> p.plot(x=[i**2 for i in range(10)], y=[i**3 for i in range(10)], key_name="first line")
>>>
                                     My Title
     90 +------------------------------------------------------------------+
        |      +       +      +       +      +       +      +       +      |
     80 |-+                                             first line ********|
        |                                                               ** |
     70 |-+                                                           ** +-|
        |                                                          ***     |
     60 |-+                                                     ***      +-|
        |                                                     **           |
     50 |-+                                                ***           +-|
  Y  40 |-+                                            ****              +-|
        |                                          ****                    |
     30 |-+                                    ****                      +-|
        |                                   ***                            |
     20 |-+                             ****                             +-|
        |                         ******                                   |
     10 |-+                *******                                       +-|
        |      +   ********   +       +      +       +      +       +      |
      0 +------------------------------------------------------------------+
        0      1       2      3       4      5       6      7       8      9
                                         X

Currently GnuplotEngine is in experimental mode. It is plotting the graph only to your terminal. Further releases would expand the functionality.

Contribution

Feel free to contribute to the project, but please initially create an issue with detailed problem and way how to resolve it.

License


MIT

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

vplotter-1.3.4.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vplotter-1.3.4-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file vplotter-1.3.4.tar.gz.

File metadata

  • Download URL: vplotter-1.3.4.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.10

File hashes

Hashes for vplotter-1.3.4.tar.gz
Algorithm Hash digest
SHA256 24fb2ebf0e9571f67bb9ae7fa8bc5ecad508b7fe53e5ec66860be7f6b114258d
MD5 db373fe34754c60fce1da0d2d9bb0880
BLAKE2b-256 e25905a886f9b147a4695d1496f9986c60604e53e162fa1640f69536e4448e86

See more details on using hashes here.

File details

Details for the file vplotter-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: vplotter-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.10

File hashes

Hashes for vplotter-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7738d0ff4683e0d924e76da8a38a89273c405eb904a6e76c670e9e60fab90562
MD5 5db2c34ce64658363358eafdd3a9602a
BLAKE2b-256 4578953ef810d7644982f33a5be7cf88a2420390a5030d6c00943adc881bfe24

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