Install bashplotlib from source
masterTo install from source, clone the repository and run the setup script using python.
$ git clone git@github.com:glamp/bashplotlib.git
$ cd bashplotlib
$ python setup.py installrepository·master·Indexed 24 days ago
https://github.com/glamp/bashplotlibA lightweight Python package and CLI tool for creating basic plots, such as histograms and scatter plots, directly in the terminal. Includes the hist and scatter command-line tools and Python functions plot_hist and plot_scatter for data visualization in environments without a GUI.
To install from source, clone the repository and run the setup script using python.
$ git clone git@github.com:glamp/bashplotlib.git
$ cd bashplotlib
$ python setup.py installYou can install the bashplotlib package using pip. This will install the python package and add the hist and scatter command-line tools to your python scripts folder. Ensure your python scripts folder is in your system PATH.
$ pip install bashplotlibTo use plotting functionality within your Python scripts, import plot_hist from bashplotlib.histogram or plot_scatter from bashplotlib.scatterplot.
from bashplotlib.scatterplot import plot_scatter
from bashplotlib.histogram import plot_histThe hist command creates histograms in the terminal. It accepts a single column of numbers as input. You can provide data via stdin or by specifying a file using the -f parameter.
$ hist --file data/exp.txtThe scatter command creates scatter plots in the terminal. It accepts x and y coordinates in two ways:
-f parameter.-x and -y parameters.You can also customize the point character using --pch.
$ scatter --file data/texas.txt --pch .
# OR
$ scatter -x data/x_test.txt -y data/y_test.txt