Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/thirdparty/cairoplot-trunk/trunk/cairoplot/handlers/ps.py
blob: 7a7778138de8308dd98dc755dc8b4e5b4cc98106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

import cairo
from .vector import VectorHandler as _VectorHandler

class PSHandler(_VectorHandler):
    """Handler to create plots that output to PostScript files."""

    def __init__(self, filename, width, height):
        """Creates a surface to be used by Cairo."""
        _VectorHandler.__init__(self, None, width, height)
        self.surface = cairo.PSSurface(filename, width, height)