blob: 032fdc803078ab1a4e89759238c7a479bb268305 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import cairo
from .vector import VectorHandler as _VectorHandler
class SVGHandler(_VectorHandler):
"""Handler to create plots that output to svg files."""
def __init__(self, filename, width, height):
"""Creates a surface to be used by Cairo."""
_VectorHandler.__init__(self, None, width, height)
self.surface = cairo.SVGSurface(filename, width, height)
|