Plotext released version 6.0.0 recently. Plotext is a Python package for creating plots in your terminal. With version 6.0.0, plotext has had a complete rewrite.
The biggest change is that plotest drawing is now done in a C++ kernel. The other big change is that plotext.figure is now the plot. Version 5 offered the same kind of thing, but in separate functions.
Getting plotext
To upgrade to the newest version of plotext, you can use pip, like this:
pip install plotext --upgrade
If you do not already have plotext, then this command will install the latest. Otherwise, pip will upgrade your installation to the latest.
Specific Changes in 6.0.0
Here’s a copy of the main changes from the release page:
C++ kernel: the drawing is done by a new kernel written in C++, compiled during the installation.
The figure:
plotext.figureis the plot, holding the tools necessary to build it, from the drawings to the way it looks and rendered; version 5 offered the same as separate functions of the package. When a grid of subplots is present,plotext.subplot()gives the subplot figure, holding the same tools.Colored primitives: the pixel, holding a color pair and a style, the colorize string, and the matrix of colored characters a plot is
made of.The marker: a new object,
plotext.marker, holding the symbol drawn at each point together with its coloring, in place of themarkerparameter of version 5: it accepts a symbol name, a text of several characters, a
colorize string or a whole matrix.The signal: a sequence of points together with the settings describing how it is drawn. Every plotting method returns a signal object, which reaches the plot only when passed to
plotext.figure.draw(). See the signal page.The ruler: the object controlling the area of the plot where the numerical ticks appear. See the ruler page.
Command line tool: rewritten, the version 5 subcommands replaced by a chain of methods mirroring the Python ones.
Documentation: the readme files are replaced by a complete separate guide.
Pretty docstrings: the prettydoc module writes colorful docstrings, browsable one by one, as
plotext.doc.bar(), or through the interactive menuplotext.doc(), inside the terminal.
Quick Example
If you would like to see how to use plotext, you can write the following basic bar plot code into your favorite Python IDE:
If you type this code out correctly and then run it in your terminal, you should see something like the following:
If you would like to learn more, check out the plotext documentation.



