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.
- draw_type = '--'¶
- path_type = 'draw'¶
pyexlatex.graphics.modified_picture module¶
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]¶
- 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]¶
- shape_name = '<Do not use Shape directly, set shape_name in subclass>'¶
- text_node: Optional[pyexlatex.graphics.tikz.node.node.Node]¶