pylatex.tikz

This module implements the classes used to show plots.

class TikZ(*, options=None, arguments=None, start_arguments=None, **kwargs)[source]

Bases: pylatex.base_classes.containers.Environment

Basic TikZ container class.

Parameters:
  • options (str or list or Options) – Options to be added to the \begin command
  • arguments (str or list or Arguments) – Arguments to be added to the \begin command
  • start_arguments (str or list or Arguments) – Arguments to be added before the options
omit_if_empty = False
class Axis(options=None, *, data=None)[source]

Bases: pylatex.base_classes.containers.Environment

PGFPlots axis container class, this contains plots.

Parameters:options (str, list or Options) – Options to format the axis environment.
omit_if_empty = False
class Plot(name=None, func=None, coordinates=None, error_bar=None, options=None)[source]

Bases: pylatex.base_classes.latex_object.LatexObject

A class representing a PGFPlot.

Parameters:
  • name (str) – Name of the plot.
  • func (str) – A function that should be plotted.
  • coordinates (list) – A list of exact coordinates tat should be plotted.
  • options (str, list or Options) –