pyexlatex.graphics.tikz.node.position package

Submodules

pyexlatex.graphics.tikz.node.position.directions module

class pyexlatex.graphics.tikz.node.position.directions.Above(direction=None, of=None, by=None, combined_direction=True)[source]

Bases: pyexlatex.graphics.tikz.node.position.directions.VerticalDirection

Used for placing nodes: construct with one node, pass as placement to another node, that second node will be placed above the first node.

name = 'above'
class pyexlatex.graphics.tikz.node.position.directions.Below(direction=None, of=None, by=None, combined_direction=True)[source]

Bases: pyexlatex.graphics.tikz.node.position.directions.VerticalDirection

Used for placing nodes: construct with one node, pass as placement to another node, that second node will be placed below the first node.

name = 'below'
class pyexlatex.graphics.tikz.node.position.directions.DirectionBase(direction=None, of=None, by=None, combined_direction=True)[source]

Bases: pyexlatex.models.item.ItemBase

Base class for relative positioning directions in TikZ, e.g. above, above right, etc.

__init__(direction=None, of=None, by=None, combined_direction=True)[source]
Parameters
  • direction (Optional[ForwardRef]) –

  • of (Optional[ForwardRef]) –

  • by (Optional[float]) –

  • combined_direction (bool) – In some usages of directions, they are specified together, e.g. above right=2cm and 3cm. In other usages, they are specified separately, e.g. above=2cm, right=3cm. When combined_direction=True, will use the former style, and when False will use the latter style

property by_str: str
Return type

str

property full_direction: str
Return type

str

property has_combined_direction: bool
Return type

bool

property horizontal_by_str: Optional[str]
Return type

Optional[str]

property horizontal_of_str: Optional[str]
Return type

Optional[str]

is_vertical_direction: Optional[bool] = None
name = '<invalid, do not use DirectionBase directly>'
property of_label: Optional[str]
Return type

Optional[str]

property of_str: str
Return type

str

property vertical_by_str: Optional[str]
Return type

Optional[str]

property vertical_of_str: Optional[str]
Return type

Optional[str]

class pyexlatex.graphics.tikz.node.position.directions.HorizontalDirection(direction=None, of=None, by=None, combined_direction=True)[source]

Bases: pyexlatex.graphics.tikz.node.position.directions.DirectionBase

is_vertical_direction: Optional[bool] = False
class pyexlatex.graphics.tikz.node.position.directions.Left(direction=None, of=None, by=None, combined_direction=True)[source]

Bases: pyexlatex.graphics.tikz.node.position.directions.HorizontalDirection

Used for placing nodes: construct with one node, pass as placement to another node, that second node will be placed to the left of the first node.

name = 'left'
class pyexlatex.graphics.tikz.node.position.directions.Right(direction=None, of=None, by=None, combined_direction=True)[source]

Bases: pyexlatex.graphics.tikz.node.position.directions.HorizontalDirection

Used for placing nodes: construct with one node, pass as placement to another node, that second node will be placed to the right of the first node.

name = 'right'
class pyexlatex.graphics.tikz.node.position.directions.VerticalDirection(direction=None, of=None, by=None, combined_direction=True)[source]

Bases: pyexlatex.graphics.tikz.node.position.directions.DirectionBase

is_vertical_direction: Optional[bool] = True

pyexlatex.graphics.tikz.node.position.position module

class pyexlatex.graphics.tikz.node.position.position.NodePosition(location=None)[source]

Bases: object

__init__(location=None)[source]