GraphCalc
About
I consider Desmos funni, so I decided to bring a similar graphing calculator to the terminal! I originally didn't want to bother with pyinstaller, so I didn't even use regex and instead coded parsing logic myself. The program takes in a math function (currently limited in operator support, i plan on adding more math functions later) and samples its value at multiple points. The values are then saved as a .csv and the program renders them with a bar graph
Options
--functionbasic mathematic expression including x. the default (for quick testing) isx*x/4.--x-offsetpositive integer, moves the "frame of sampling"--x-rangerange over which the program should sample, default is 8--samplenumber of samples to use, default is 16--filefile for csv output, default isfunction.csvRun options:--run, invokestermgraph(.py)after outputting the csv values--x-spacespace available for x axis in terminal, default is 86 to support small terminals, 126 and 168 work well.--labelprovidestermgraphwith x axis labels for each sample
Installation
Pyinstaller
Download both termgraph and termgraph-calc from the pybuilds folder and place them in the same folder.
Windows
Run pip install argparse
Download both termgraph.py and termgraph-calc.py from the root folder and place them in the same folder.
Linux/macOS
Download both termgraph.py and termgraph-calc.py from the root folder and place them into a folder of your choice.
In that folder, run
python3 -m venv .venv
source .venv/bin/activate
pip install argparse
To start the program in the venv, run
source .venv/bin/activate
python3 termgraph-calc.py
Metadata
Release files for hc-term-graph 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hc_term_graph-1.0.0.tar.gz | 19.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hc_term_graph-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.7 kB
Release files / hc_term_graph-1.0.0.tar.gz
| Download URL | hc_term_graph-1.0.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30918de763aae9ca0eaed54c567a2813655828add574dbb760a287a4c0b318dd
|
|
BLAKE2b-256 checksum How to use checksums |
0d6043543a78d826b725b5a5dba7d7e7c865df929c78bc8ba456a620a514cb81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / hc_term_graph-1.0.0-py3-none-any.whl
| Download URL | hc_term_graph-1.0.0-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
040f5b3a8183502bc09eab7351a750d18f90bd55eb3568c779cc2eb45a6b2358
|
|
BLAKE2b-256 checksum How to use checksums |
38e90533fd719fb4badf09e054dc0b968358afdbf0197775a07a1691d6ad4ee1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|