PaperConfig#
- class PaperConfig(name: str, y_axis_up: bool, origin_location: tuple[float, float], paper_size: typing.Optional[tuple[float, float]] = None, paper_orientation: typing.Optional[str] = None, x_range: typing.Optional[tuple[int, int]] = None, y_range: typing.Optional[tuple[int, int]] = None, origin_location_reference: str | None = 'topleft', info: str = '', rotate_180: bool = False, set_ps: typing.Optional[int] = None, final_pu_params: typing.Optional[str] = None, aka_names: list[str] = <factory>)#
Data class containing configuration for a give plotter type/paper size combinations.
Methods
Attributes
if not None, these params are added to the final PU command
information printed to the user when paper is used
reference for
origin_location
orientation of the plotter coordinate system on paper
X/Y axis convention of the plotter
if True, the geometries are rotated by 180 degrees on the page
if not None, call PS with corresponding value
admissible range of X coordinates
admissible range of Y coordinates
name of the paper format
if True, the Y axis point upwards instead of downwards
location on paper of the (0, 0) plotter unit coordinates
alternative paper names (will be found by
paper_config()
Methods#
- classmethod PaperConfig.from_config(data: dict[str, Any]) vpype.config.PaperConfig #
- Parameters
- Return type
Attributes#
- PaperConfig.final_pu_params: None | str = None#
if not None, these params are added to the final PU command
- PaperConfig.paper_orientation: None | str = None#
orientation of the plotter coordinate system on paper
- PaperConfig.rotate_180: bool = False#
if True, the geometries are rotated by 180 degrees on the page