Pykz, Tikz generation from Python#

Generate beautiful, publication-ready figures with the power of Tikz and pgfplots, with a comfortable, familiar Python syntax.

pykz aims to provide a syntax similar to matplotlib, but with the possibility of directly outputting (and controlling!) your tikz code.

The benefit over alternatives like tikzplotlib is pykz was designed explicitly with pgfplots in mind, whereas the goal of tikzplotlib is to map matplotlib concepts to pgfplots. This is arguably more convenient if you already have code for matplotlib, but it often still requires manual tweaking to the resulting tex-files. pykz aims to provide more control over the final output directly in Python, so no manual tweaking is required afterwards.

Installation#

To install pykz, run:

$ pip install pykz

Quick Start#

pykz provides a simple high-level interface for common plotting operations. For instance, see Minimal working example

For more examples, see the Example Gallery

Indices and tables#