Skip to main content

Simple Graph Generator

Project description

Description

This is a simple tool for creating graphs from the terminal. It reads files contaning two numeric columns and create a graph from it.

Install

Just the usual python installation pattern (your python version should be >= 3.8)

pip3 install --user sgg

Examples

Consider two files:

file1.txt

0 500
1 550
2 600
3 650
4 700
5 750
6 800
7 850
8 900
9 950

file2.txt

0 2
1 4
2 8
3 16
4 32
5 64
6 128
7 256
8 512
9 1024

To create a graph comparing these two files, we can use the following command:

sgg --title '$f(x) = x$ versus $f(x) = x^{2}$' -y '$f(x)$' -x '$x$' -s '-' ' --' -l '$f(x) = x$' '$f(x) = x^{2}$' -f file1.txt file2.txt -c 'darkorange' 'royalblue' --xmin 0  --dest out.png

NOTE: If you are reading this file in PyPi you will be not able to see the png file, so go to the github repository .

The result are shown below :

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

sgg-0.0.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

sgg-0.0.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file sgg-0.0.5.tar.gz.

File metadata

  • Download URL: sgg-0.0.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for sgg-0.0.5.tar.gz
Algorithm Hash digest
SHA256 411d4831c7b7d32c2e261c0072bb2421a8c77b0db43f78718b0a9d92e0b757c1
MD5 5f0ab826adf7ced8c1d46e72b167f4e5
BLAKE2b-256 fd18d22aeafc1d4716537043f240b25ec4f6b0cf6e73b0f86b7a0b57ba915672

See more details on using hashes here.

File details

Details for the file sgg-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: sgg-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for sgg-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 44d4ac6b1db87bb8aea2da44fb4a076a5398198252f1ef4e6bddc99b1c29b4c5
MD5 f41edaa7e335628656e886c86f5e554f
BLAKE2b-256 f6e352d56f32ecbdec84c9cab9eee3590b24ca2c2a69c2e324e0d009765184c0

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