コード例 #1
0
ファイル: latex.py プロジェクト: vseshadr/vplotlib
 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
ファイル: latex.py プロジェクト: vseshadr/vplotlib
 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
ファイル: shapes.py プロジェクト: vseshadr/vplotlib
 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
ファイル: latex.py プロジェクト: vseshadr/vplotlib
 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
ファイル: picture.py プロジェクト: vseshadr/vplotlib
 def __init__(self):
     """Construct an empty picture"""
     TikZElement.__init__(self)
     self.nodable = True
     self.elements = []
コード例 #7
0
ファイル: comment.py プロジェクト: vseshadr/vplotlib
 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
ファイル: style.py プロジェクト: vseshadr/vplotlib
 def __init__(self, name=None):
     """Constructs a new style with the given name"""
     TikZElement.__init__(self)
     self.picturable = True
     self.name = name
コード例 #9
0
ファイル: latex.py プロジェクト: vseshadr/vplotlib
 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
ファイル: shapes.py プロジェクト: vseshadr/vplotlib
 def __init__(self, name=None, point=None):
     """Construct a new TikZ Coordinate"""
     TikZElement.__init__(self)
     self._name = name
     self._point = point
     self.picturable = True