Plotting from the command line
Project description
shellplot
“We should have never left the command line.”
Shellplot is the plotting package that you didn’t know you needed. Plotting, straight outta the command line.
Please take a look at the documentation, which contains many examples.
Installation
Run:
pip install shellplot
Quickstart
Shellplot loosely replicates the matplotlib API, it’s as easy as:
>>> import shellplot as plt >>> df = plt.load_dataset("penguins") >>> plt.plot(df["bill_length_mm"], df["flipper_length_mm"], color=df["species"]) flipper_length_mm 232.0┤ o o o o o o o | ooo o o o | o ooo | o oooo | o oo o oo ooo oooo o | o o o o o o oo o o 217.0┤ o o oo oo oo o | o ooo oooooooooo o | oo o o o | + ooooooo ooooo o oo* * * | o * * | + o * ** * * 202.0┤ + + * ** ** * | + ++++ ++ ++ * * * **** * | +++ ++++ + *+ ** ***** | + +++++ ++ +++++++ + + * * * *** * ** | + + + ++ + ++++ + *+*** * |+ + ++ ++++ +++++++++ + **** * 187.0┤ + + + + ++ +++ +* * * * * | ++ + +++++ + + + * | + ++ + ++ * * | + + + + | + + + + * + Adelie | + * Chinstrap 172.0┤ + o Gentoo ├--------------┬--------------┬-------------┬--------------┬---------- 32.0 38.0 44.0 50.0 56.0 bill_length_mm
Shellplot also provides a convenient integration with pandas. Simply set the pandas plotting backend to shellplot:
>>> import pandas as pd >>> pd.set_option("plotting.backend", "shellplot")
Please refer to the documentation for further details.
Note
This project has been set up using PyScaffold 3.2.3. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shellplot-0.1.2.tar.gz
(28.2 kB
view hashes)