plotext
plots directly on terminal
- it allows for scatter, line, bar, histogram and date-time plots (including candlestick),
- it can also plot error bars, confusion matrices, and add extra text, lines and shapes to the plot,
- you could use it to plot images (including GIFs) and stream video with audio (including YouTube),
- it has no dependencies (except for optional dependencies for image/video plotting),
- it provides a simple command line tool,
- it can save plots as text or as colored
html
, - it provides a tool to color strings.
image code here
pip install plotext
for normal installation,pip install plotext --upgrade
to upgrade to the latest PyPi version,pip install "plotext[image]"
to install the optional dependency for image plotting (including GIFs),pip install "plotext[video]"
to install the optional dependencies for video rendering, which will also allow to plot images,pip install "plotext[completion]"
to allow TAB completion in the command line tool (under development),pip install git+https://github.com/piccolomo/plotext
, to install the GitHub version, if more updated and you feel courageous,pip install "plotext[image] @ git+https://github.com/piccolomo/plotext.git"
to include image plotting dependencies,pip install "plotext[video] @ git+https://github.com/piccolomo/plotext.git"
to include video plotting dependencies,pip install "plotext[completion] @ git+https://github.com/piccolomo/plotext.git"
to include the TAB completion dependency,
- the optional packages are
pillow
(for image plotting),opencv-python
(for video rendering),ffpyplayer
(to stream audio),pafy
andyoutube-dl
(to stream YouTube),shtab
(for TAB completion), - use the function
test()
to quickly test (up to image rendering) your newly installed version ofplotext
: any issue report is very welcomed. This function will download and finally remove a test image. - created and tested in Ubuntu 22.04 and Python 3.10,