示例#1
0
 def __init__(self, name=None, value=None):
     """Create a new definition with the given name and value."""
     TikZElement.__init__(self)
     self.nodable = True
     self.picturable = True
     self.name = name
     self.value = value
示例#2
0
 def __init__(self, text=None, font_size='normal', width=None):
     """Create a new minipage with the given text, font size and width"""
     TikZElement.__init__(self)
     self.nodable = True
     self.text = text
     self.font_size = font_size
     self.width = width
示例#3
0
 def __init__(self, line_type=None, thickness=None, style=None):
     """Construct a shape with the given line type, thickness and style"""
     TikZElement.__init__(self)
     self.picturable = True
     self.line_type = line_type
     self.thickness = thickness
     self.style = style
示例#4
0
文件: node.py 项目: vseshadr/vplotlib
 def __init__(self, name=None, location=None, content=None, oneline=False):
     """Construct a new node with the given name, location and content"""
     TikZElement.__init__(self)
     self.picturable = True
     self.name = name
     self.location = location
     self.content = content
     self.oneline = oneline
示例#5
0
 def __init__(self, name=None, value=None):
     """Create a new length field with the specified name and length"""
     TikZElement.__init__(self)
     self.nodable = True
     self.picturable = True
     self.name = name
     self.value = value
     self.additions = []
示例#6
0
 def __init__(self):
     """Construct an empty picture"""
     TikZElement.__init__(self)
     self.nodable = True
     self.elements = []
示例#7
0
 def __init__(self, comment=None):
     """Create a new comment. Comments do not have options"""
     TikZElement.__init__(self)
     self.picturable = True
     self.comment = comment
示例#8
0
 def __init__(self, name=None):
     """Constructs a new style with the given name"""
     TikZElement.__init__(self)
     self.picturable = True
     self.name = name
示例#9
0
 def __init__(self, text=None, font_size='normal'):
     """Create a new text with the specified font size"""
     TikZElement.__init__(self)
     self.nodable = True
     self.text = text
     self.font_size = font_size
示例#10
0
 def __init__(self, name=None, point=None):
     """Construct a new TikZ Coordinate"""
     TikZElement.__init__(self)
     self._name = name
     self._point = point
     self.picturable = True