Usage¶
Installation¶
Install using pip:
pip install plot-cli
Plot Graphs¶
To plot from file, use -i
option:
plot -i data.csv
To plot from stdin:
cat data.csv | plot
To save to file, use -o
option:
plot -i data.csv -o plot.png
If you do not use -o
option, it is saved in a temporary file and opened.
To use tsv file:
plot -i data.tsv --delimiter '\t'
To change style:
plot --style ggplot
See also plot --help
.
Available Graph Types¶
Subcommands allow you to use a variety of graphs.
subcommand |
graph type |
---|---|
line |
Line graph |
bar |
Bar graph |
area |
Area plot |
box |
Box plot |
hist |
Histogram |
scatter |
Scatter plot |
pie |
Pie chart |
Shell Complete¶
The plot-cli supports Shell completion.
For Bash, add this to ~/.bashrc
:
eval "$(_PLOT_COMPLETE=source plot)"
For Zsh, add this to ~/.zshrc
:
eval "$(_PLOT_COMPLETE=source_zsh plot)"
For Fish, add this to ~/.config/fish/completions/plot-cli.fish
:
eval (env _PLOT_COMPLETE=source_fish plot)