parameters: (self, trans=None)
return_statement: return output
docstring: Apply the transformation "trans" and return an SVG object.
docstring_summary: Apply the transformation "trans" and return an SVG object.
docstring_tokens: Apply the transformation trans and return an SVG object .
function: def SVG(self, trans=None):
          """Apply the transformation "trans" and return an SVG object."""
          if isinstance(trans, basestring):
              trans = totrans(trans) # only once
  
          output = SVG("g")
          for p in self.d:
              x, y = p[0], p[1]
  
              if len(p) == 3:
                  bars = [x - p[2], x + p[2]]
              else:
                  bars = [x + pi for pi in p[2:]]
  
              start, end = min(bars), max(bars)
              output.append(LineAxis(start, y, end, y, start, end, bars, False, False, **self.attr).SVG(trans))
  
          return output
function_tokens: def SVG ( self , trans = None ) : if isinstance ( trans , basestring ) : trans = totrans ( trans ) # only once output = SVG ( "g" ) for p in self . d : x , y = p [ 0 ] , p [ 1 ] if len ( p ) == 3 : bars = [ x - p [ 2 ] , x + p [ 2 ] ] else : bars = [ x + pi for pi in p [ 2 : ] ] start , end = min ( bars ) , max ( bars ) output . append ( LineAxis ( start , y , end , y , start , end , bars , False , False , * * self . attr ) . SVG ( trans ) ) return output