Index: backend_svg.py
===================================================================
RCS file: /cvsroot/matplotlib/matplotlib/matplotlib/backends/backend_svg.py,v
retrieving revision 1.1
diff -u -r1.1 backend_svg.py
--- backend_svg.py 27 May 2004 21:14:22 -0000 1.1
+++ backend_svg.py 4 Jun 2004 20:26:49 -0000
@@ -55,6 +55,7 @@
self._svgwriter = svgwriter
self.width=width
self.height=height
+ self._groupd = {}
def flipy(self):
'return true if y small numbers are top for renderer'
@@ -88,7 +89,24 @@
h *= 0.001*fontsize
return w, h
+ def open_group(self, s):
+ 'open a grouping element with label s'
+ group = self._groupd.get(s)
+ if group is None: # This is just to make sure each group gets
+ self._groupd[s] = 0 # a unique name.
+ if group is not None:
+ self._groupd[s] += 1
+ svg = '\n'
+ self._draw_rawsvg(svg)
+
+ def close_group(self, s):
+ 'close a grouping element with label s'
+ self._draw_rawsvg('\n')
+
def draw_arc(self, gc, rgbFace, x, y, width, height, angle1, angle2): #for now, draws a circle of diameter width
+ """
+ Draw a circle at x,y of diameter 'width'
+ """
type = '