plotext
plots directly on terminal
- it allows for scatter, line, bar, histogram, error and date-time plots (including candlestick),
- it can also 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 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 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,
- the optional packages are
pillow
(for image plotting),opencv-python
(for video rendering),ffpyplayer
(to stream audio),pafy
andyoutube-dl
(to stream YouTube), - use the function
test()
to quickly test (up to image rendering) your newly installed version ofplotext
.