Lines Matching refs:SVG
68 class SVG: class
192 return (isinstance(other, SVG) and
239 if not isinstance(self.svg, SVG):
375 if isinstance(s, SVG):
426 if isinstance(s, SVG):
551 return SVG("svg", **attributes)
553 return SVG("svg", *sub, **attributes)
563 svg.prepend(SVG("rect", x=x, y=y, width=width, height=height, stroke="none", fill="cornsilk"))
564 svg.append(SVG("rect", x=x, y=y, width=width, height=height, stroke="black", fill="none"))
587 if isinstance(s, SVG) and s.t == replaceme:
610 s = SVG(name)
629 if (isinstance(last, SVG) and last.t == "style" and
818 def SVG(self, trans=None): member in Fig
829 output = SVG("g")
831 if isinstance(s, SVG):
846 output.sub += s.SVG(subtrans).sub
852 output.append(s.SVG(trans))
936 def SVG(self, trans=None): member in Plot
954 return Fig(Fig(*d, **{"trans": trans})).SVG(self.last_window)
1044 def SVG(self): member in Frame
1087 output = Fig(*self.d).SVG(self.last_window)
1088 output.prepend(left.SVG(self.last_window))
1089 output.prepend(bottom.SVG(self.last_window))
1090 output.prepend(right.SVG(self.last_window))
1091 output.prepend(top.SVG(self.last_window))
1094 …output.append(SVG("text", self.xtitle, transform="translate(%g, %g)" % ((self.x + self.width/2.), …
1096 …output.append(SVG("text", self.ytitle, transform="translate(%g, %g) rotate(-90)" % ((self.x - self…
1103 if not isinstance(svg, SVG) or svg.t != "path":
1338 def SVG(self, trans=None): member in Path
1566 return SVG("path", d="".join(output), **self.attr)
1797 def SVG(self, trans=None): member in Curve
1799 return self.Path(trans).SVG()
1883 def SVG(self, trans=None): member in Poly
1885 return self.Path(trans).SVG()
2045 def SVG(self, trans=None): member in Text
2053 return SVG("text", self.d, x=X, y=Y, **self.attr)
2075 def SVG(self, trans=None): member in TextGlobal
2077 return SVG("text", self.d, x=self.x, y=self.y, **self.attr)
2081 _symbol_templates = {"dot": SVG("symbol", SVG("circle", cx=0, cy=0, r=1, stroke="none", fill="black…
2082 …"box": SVG("symbol", SVG("rect", x1=-1, y1=-1, x2=1, y2=1, stroke="none", fill="black"), viewBox="…
2083 …"uptri": SVG("symbol", SVG("path", d="M -1 0.866 L 1 0.866 L 0 -0.866 Z", stroke="none", fill="bla…
2084 …"downtri": SVG("symbol", SVG("path", d="M -1 -0.866 L 1 -0.866 L 0 0.866 Z", stroke="none", fill="…
2129 elif isinstance(symbol, SVG):
2134 def SVG(self, trans=None): member in Dots
2139 output = SVG("g", SVG("defs", self.symbol))
2150 item = SVG("use", x=X, y=Y, xlink__href=id)
2161 _marker_templates = {"arrow_start": SVG("marker", SVG("path", d="M 9 3.6 L 10.5 0 L 0 3.6 L 10.5 7.…
2162 …"arrow_end": SVG("marker", SVG("path", d="M 1.5 3.6 L 0 0 L 10.5 3.6 L 0 7.2 L 1.5 3.6 Z"), viewBo…
2206 def SVG(self, trans=None): member in Line
2209 line = self.Path(trans).SVG()
2213 defs = SVG("defs")
2216 if isinstance(self.arrow_start, SVG):
2226 if isinstance(self.arrow_end, SVG):
2235 return SVG("g", defs, line)
2293 def SVG(self, trans=None): member in LineGlobal
2305 line = SVG("path", d="M%s %s L%s %s" % (X1, Y1, X2, Y2), **self.attr)
2309 defs = SVG("defs")
2312 if isinstance(self.arrow_start, SVG):
2322 if isinstance(self.arrow_end, SVG):
2331 return SVG("g", defs, line)
2416 def SVG(self, trans=None): member in Rect
2418 return self.Path(trans).SVG()
2480 def SVG(self, trans=None): member in Ellipse
2482 return self.Path(trans).SVG()
2664 def SVG(self, trans=None): member in Ticks
2672 output = SVG("g")
2676 defs = SVG("defs")
2679 if isinstance(self.arrow_start, SVG):
2687 if isinstance(self.arrow_end, SVG):
2719 output.append(SVG("text", label, transform="translate(%g, %g) rotate(%g)" %
2736 output.prepend(tickmarks.SVG(trans))
2737 output.prepend(minitickmarks.SVG(trans))
3100 def SVG(self, trans=None): member in CurveAxis
3102 func = Curve.SVG(self, trans)
3103 ticks = Ticks.SVG(self, trans) # returns a <g />
3184 def SVG(self, trans=None): member in LineAxis
3186 line = Line.SVG(self, trans) # must be evaluated first, to set self.f, self.low, self.high
3205 ticks = Ticks.SVG(self, trans) # returns a <g />
3258 def SVG(self, trans=None): member in XAxis
3262 return LineAxis.SVG(self, trans)
3313 def SVG(self, trans=None): member in YAxis
3317 return LineAxis.SVG(self, trans)
3376 def SVG(self, trans=None): member in Axes
3402 …base, xarrow_start, xarrow_end, exclude=xexclude, text_attr=self.text_attr, **self.attr).SVG(trans)
3403 …base, yarrow_start, yarrow_end, exclude=yexclude, text_attr=self.text_attr, **self.attr).SVG(trans)
3404 return SVG("g", *(xaxis.sub + yaxis.sub))
3445 def SVG(self, trans=None): member in HGrid
3457 … return SVG("g", Path(d=ticksd, **self.attr).SVG(), Path(d=miniticksd, **self.mini_attr).SVG())
3497 def SVG(self, trans=None): member in VGrid
3509 … return SVG("g", Path(d=ticksd, **self.attr).SVG(), Path(d=miniticksd, **self.mini_attr).SVG())
3549 def SVG(self, trans=None): member in Grid
3568 … return SVG("g", Path(d=ticksd, **self.attr).SVG(), Path(d=miniticksd, **self.mini_attr).SVG())
3602 def SVG(self, trans=None): member in XErrorBars
3607 output = SVG("g")
3617 … output.append(LineAxis(start, y, end, y, start, end, bars, False, False, **self.attr).SVG(trans))
3652 def SVG(self, trans=None): member in YErrorBars
3657 output = SVG("g")
3667 … output.append(LineAxis(x, start, x, end, start, end, bars, False, False, **self.attr).SVG(trans))