pyexlatex.graphics package

Subpackages

Submodules

pyexlatex.graphics.arrow module

class pyexlatex.graphics.arrow.Arrow(from_, to, double_sided=False, options=None, overlay=None)[source]

Bases: pyexlatex.graphics.tikz.path.SpecificPath

Draws an arrow from one location to another.

__init__(from_, to, double_sided=False, options=None, overlay=None)[source]
property arrow_option: str
Return type

str

draw_type = '--'
path_type = 'draw'

pyexlatex.graphics.modified_picture module

class pyexlatex.graphics.modified_picture.ModifiedPicture(picture, draw_items, add_grid=False)[source]

Bases: pyexlatex.models.template.Template

__init__(picture, draw_items, add_grid=False)[source]

pyexlatex.graphics.rectangle module

class pyexlatex.graphics.rectangle.Rectangle(width, height, contents=None, offset=(0, 0), content_position='center', content_offset=None, shape_options=None, text_options=None, overlay=None, unit='cm')[source]

Bases: pyexlatex.graphics.shape.Shape

Draws a rectangle.

__init__(width, height, contents=None, offset=(0, 0), content_position='center', content_offset=None, shape_options=None, text_options=None, overlay=None, unit='cm')[source]
get_size_options()[source]
Return type

List[str]

shape_name = 'rectangle'
text_node: Optional[pyexlatex.graphics.tikz.node.node.Node]

pyexlatex.graphics.shape module

class pyexlatex.graphics.shape.Shape(shape_options=None, text_options=None, offset=(0, 0), contents=None, content_position='center', content_offset=None, **kwargs)[source]

Bases: pyexlatex.models.section.base.TextAreaMixin, pyexlatex.models.item.ItemBase

Base class for creating individual shape classes, not intended to be used directly.

__init__(shape_options=None, text_options=None, offset=(0, 0), contents=None, content_position='center', content_offset=None, **kwargs)[source]
property label: Optional[str]
Return type

Optional[str]

shape_name = '<Do not use Shape directly, set shape_name in subclass>'
text_node: Optional[pyexlatex.graphics.tikz.node.node.Node]