Skip to content

6.0.0

Choose a tag to compare

@piccolomo piccolomo released this 23 Aug 16:41
· 3 commits to master since this release

This s a complete rewrite of version 5.

To install it, as explained here, use:

pip install plotext --upgrade

Main changes

  • C++ kernel: the drawing is done by a new kernel written in C++, compiled during the installation.
  • The figure: plotext.figure is 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 the marker parameter 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 menu plotext.doc(), inside the terminal.

The change log lists every renamed, removed and changed method, section by section.

Links

Thank you to everyone who reported an issue, asked a question or sent a pull request over time.