NOTE: This repository has been moved to codeberg
Simple CLI program to make line and bar plots. Made for a formative activity at UNIFI.
- Python 3.11.9 or newer
- Colorama 0.4.6 or newer
- Catppuccin 2.2.0 or newer
- Matplotlib 3.8.4 or newer
- Numpy 1.26.4 or newer
- Linux or MacOS (on Windows you have to use WSL)
- Create and enter your python environment if you haven't already (optional except in some linux distributions)
python -m venv /path/to/environment
source /path/to/environment/bin/activate
- Clone this repository wherever
cd /path/to/installation
git clone https://github.com/EuroNutellaMan/LorPlot.git
cd LorPlot
- Install dependencies
pip install colorama catppuccin matplotlib numpy
- You will find the program in /path/to/installation/LorPlot
- Install dependencies via configuration file (or preferred method)
environment.systemPackages = with pkgs; [
(python311.withPackages(ps: with ps; [
colorama
catppuccin
matplotlib
numpy
]))
];
- Clone this repository in your preferred path
cd /path/to/installation
git clone https://github.com/EuroNutellaMan/LorPlot.git
- You will find the program in /path/to/installation/LorPlot
Write the data in the csv file, with the first column being values for x (line plot) or labels (bar plot), the second column being values for the y axis, and the third column being the standard deviation. On your preferred terminal run:
python3 /path/to/installation/LorPlot/LorPlot.py
Add data to the plot.csv file in a way where column A contains each bar's label, column B contains its value and column C contains the standard deviation. Each row is a new bar.
Add data to the plot.csv file in a way where column A contains the values of the X axis for every line, column B contains their values for the Y axis, and column C contains the standard deviation. Each time a 0 is encountered in column A a new line starts.
This program was only tested on NixOS unstable and Fedora 40 so far.
It is recommended to set up an alias, for terminals using the bash shell this can be done by adding:
alias lorplot='python3 path/to/LorPlot/LorPlot.py'
to your ~/.bashrc file
This program is licensed under the MIT License