PlotterConfig
- class PlotterConfig(name, paper_configs, plotter_unit_length, pen_count, info='')
Data class containing configuration for a given plotter type.
Methods
- rtype
Return the paper configuration for
paper
or none if not found.Look for a paper configuration matching
paper_format
and return it if found.Attributes
information printed to the user when plotter is used
name of the plotter
list of
PaperConfig
instancephysical size of plotter units (in pixel)
number of pen supported by the plotter
Methods
- classmethod PlotterConfig.from_config(data)
- Return type
- PlotterConfig.paper_config(paper)
Return the paper configuration for
paper
or none if not found.- Parameters
paper (
str
) -- desired paper format designator- Return type
- Returns
the
PaperConfig
instance corresponding topaper
or None if not found
- PlotterConfig.paper_config_from_size(page_size)
Look for a paper configuration matching
paper_format
and return it if found.- Parameters
page_size (
Optional
[Tuple
[float
,float
]]) -- tuple of desired page size (may beNone
, in which caseNone
is returned- Return type
- Returns
the
PaperConfig
instance corresponding topaper_format
or None if not found
Attributes
- PlotterConfig.paper_configs: List[vpype.config.PaperConfig]
list of
PaperConfig
instance