tikz.papersize

class skymap.tikz.papersize.PaperSize(name='', width=None, height=None, landscape=False)[source]

General class for paper sizes.

For every papersize, the class contains a regular expression match pattern for the name and a method named get_<basename>_papersize. The match pattern should include at least a group for the basename of the papersize, which might be the full name. This basename is used to identify the correct method to call. If more than one group is defined in the match pattern, the rest of the groups are passed as arguments to the method. The method should have landscape as the final argument.

For aliases, a separate dict is used: any name is first checked for aliases, and the canonical name is used to determine the paper size.

Parameters:
  • width (float) – the width of the paper size in mm
  • height (float) – the height of the paper size in mm
  • name (str) – the name of the paper size
  • landscape (bool) – whether to set the largest value to width or not
MATCH_TARGETS = (re.compile('(a)(\\d+)'), re.compile('(b)(\\d+)'), re.compile('(c)(\\d+)'), re.compile('(ansi)-([a-e])'), re.compile('(legal)'))
ALIASES = {'letter': 'ANSI-A', 'tabloid': 'ANSI-B'}
__init__(name='', width=None, height=None, landscape=False)[source]

Initialize self. See help(type(self)) for accurate signature.

class skymap.tikz.papersize.PaperMargin(left=24, bottom=24, right=None, top=None)[source]
__init__(left=24, bottom=24, right=None, top=None)[source]

Initialize self. See help(type(self)) for accurate signature.

l
r
t
b