Skip to main content

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 :

Metadata

Release files for sgg 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sgg 0.0.5
File Size Uploaded
sgg-0.0.5.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sgg 0.0.5
File Interpreter ABI Platform
sgg-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / sgg-0.0.5.tar.gz

Download URL sgg-0.0.5.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
411d4831c7b7d32c2e261c0072bb2421a8c77b0db43f78718b0a9d92e0b757c1
BLAKE2b-256 checksum
How to use checksums
fd18d22aeafc1d4716537043f240b25ec4f6b0cf6e73b0f86b7a0b57ba915672
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / sgg-0.0.5-py3-none-any.whl

Download URL sgg-0.0.5-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44d4ac6b1db87bb8aea2da44fb4a076a5398198252f1ef4e6bddc99b1c29b4c5
BLAKE2b-256 checksum
How to use checksums
f6e352d56f32ecbdec84c9cab9eee3590b24ca2c2a69c2e324e0d009765184c0
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page