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
$ pip install shellplot
Quickstart
Shellplot loosely replicates the matplotlib API, offering both a figure and functional api. It currently supports scatter, line, histogram, bar and boxplots, with many options to customize the figure. 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┤ o oo oo o o o
| oo o o o
| oooo
| o oooo ooo oo o
| oo oooo oo o o o o o
217┤ o o oo ooooo ooo o
| o o o ooooo o o*oo
| o oo + oooo oooo * *
| + oooo o o * *
| ++ o * ** **
202┤ + + * ** ** *
| + ++++ + + * ** ****
| ++ +++ +++ +++ + ** ** ***** **
| +++ ++++ ++ ++ + *+** * ***
| + + ++++++++++ ++++ *+*** * *
187┤+ + + ++ +++++++*+ * * ** *
| ++ ++++++ + +++ *
| + ++ + + + * *
| + ++ + * + Adelie
| + + * Chinstrap
172┤ + o Gentoo
└┬----------┬---------┬----------┬----------┬----------┬------
32 37 42 47 52 57
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 pandas visualisation page 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
File details
Details for the file shellplot-0.2.0.tar.gz
.
File metadata
- Download URL: shellplot-0.2.0.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc07b9fd73af76d74a60d9c615d16f4107fc57d2bfa512637044817765e09ed |
|
MD5 | a2d5bc2e3b5163dd45d230249282d548 |
|
BLAKE2b-256 | 3262477d8e3a887454effadce620fdf737a1bd9d4afaa8b6067bbda580cc9069 |