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
paperor none if not found.Look for a paper configuration matching
paper_formatand return it if found.Attributes
information printed to the user when plotter is used
name of the plotter
list of
PaperConfiginstancephysical 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
paperor none if not found.- Parameters
paper (
str) -- desired paper format designator- Return type
- Returns
the
PaperConfiginstance corresponding topaperor None if not found
- PlotterConfig.paper_config_from_size(page_size)
Look for a paper configuration matching
paper_formatand return it if found.- Parameters
page_size (
Optional[Tuple[float,float]]) -- tuple of desired page size (may beNone, in which caseNoneis returned- Return type
- Returns
the
PaperConfiginstance corresponding topaper_formator None if not found
Attributes
- PlotterConfig.paper_configs: List[vpype.config.PaperConfig]
list of
PaperConfiginstance