CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
svgfig.VLine Class Reference
Inheritance diagram for svgfig.VLine:
svgfig.Line svgfig.Curve

Public Member Functions

def __init__
 
def __repr__
 
def Path
 
- Public Member Functions inherited from svgfig.Line
def __init__
 
def __repr__
 
def Path
 
def SVG
 
- Public Member Functions inherited from svgfig.Curve
def __init__
 
def __repr__
 
def Path
 
def sample
 end nested class More...
 
def subsample
 
def SVG
 

Public Attributes

 attr
 
 x
 
 x1
 
 x2
 
- Public Attributes inherited from svgfig.Line
 arrow_end
 
 attr
 
 f
 
 high
 
 loop
 
 low
 
 y2
 
- Public Attributes inherited from svgfig.Curve
 attr
 
 f
 
 high
 
 last_samples
 
 loop
 
 low
 

Static Public Attributes

dictionary defaults = {}
 
- Static Public Attributes inherited from svgfig.Line
dictionary defaults = {}
 
- Static Public Attributes inherited from svgfig.Curve
dictionary defaults = {}
 
int discontinuity_limit = 5
 
float linearity_limit = 0.05
 
 random_sampling = True
 
int recursion_limit = 15
 

Detailed Description

Draws a vertical line.

VLine(y1, y2, x, attribute=value)

y1, y2                  required        y range
x                       required        x position
attribute=value pairs   keyword list    SVG attributes

Definition at line 2122 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.VLine.__init__ (   self,
  y1,
  y2,
  x,
  attr 
)

Definition at line 2136 of file svgfig.py.

2137  def __init__(self, y1, y2, x, **attr):
2138  self.x = x
2139  self.attr = dict(self.defaults)
2140  self.attr.update(attr)
2141  Line.__init__(self, x, y1, x, y2, **self.attr)
def __init__
Definition: svgfig.py:2136
dictionary defaults
Definition: svgfig.py:1509

Member Function Documentation

def svgfig.VLine.__repr__ (   self)

Definition at line 2133 of file svgfig.py.

References svgfig.SVG.attr, svgfig.Path.attr, svgfig.Curve.attr, MuonGeometryArrange::MGACollection.x, svgfig.Plot.x, svgfig.Frame.x, svgfig.Text.x, svgfig.TextGlobal.x, svgfig.VLine.x, DDTrap.y1(), DDPseudoTrap.y1(), svgfig.HLine.y1, svgfig.XAxis.y1, and svgfig.Line.y2.

2134  def __repr__(self):
2135  return "<VLine (%g, %g) at x=%s %s>" % (self.y1, self.y2, self.x, self.attr)
def __repr__
Definition: svgfig.py:2133
def svgfig.VLine.Path (   self,
  trans = None,
  local = False 
)
Apply the transformation "trans" and return a Path object in
global coordinates.  If local=True, return a Path in local coordinates
(which must be transformed again).

Definition at line 2142 of file svgfig.py.

2143  def Path(self, trans=None, local=False):
2144  """Apply the transformation "trans" and return a Path object in
2145  global coordinates. If local=True, return a Path in local coordinates
2146  (which must be transformed again)."""
2147  self.x1 = self.x
2148  self.x2 = self.x
2149  return Line.Path(self, trans, local)

Member Data Documentation

svgfig.VLine.attr

Definition at line 2138 of file svgfig.py.

Referenced by svgfig.Ticks.__repr__(), svgfig.Axes.__repr__(), svgfig.HGrid.__repr__(), svgfig.VGrid.__repr__(), svgfig.Grid.__repr__(), svgfig.Axes.SVG(), svgfig.XErrorBars.SVG(), and svgfig.YErrorBars.SVG().

dictionary svgfig.VLine.defaults = {}
static

Definition at line 2131 of file svgfig.py.

Referenced by tree.Tree.reset(), and tree.Tree.var().

svgfig.VLine.x

Definition at line 2137 of file svgfig.py.

Referenced by python.rootplot.utilities.Hist.__init_TGraph(), svgfig.Curve.Sample.__repr__(), svgfig.VLine.__repr__(), svgfig.Ellipse.__repr__(), python.rootplot.root2matplotlib.Hist._prepare_xaxis(), python.rootplot.root2matplotlib.Hist._prepare_yaxis(), Vispa.Gui.WidgetContainer.WidgetContainer.autosize(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), python.rootplot.root2matplotlib.Hist2D.box(), python.rootplot.root2matplotlib.Hist2D.contour(), python.rootplot.root2matplotlib.Hist.errorbar(), python.rootplot.root2matplotlib.Hist.errorbarh(), geometryXMLparser.Alignable.pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), and python.rootplot.utilities.Hist.TGraph().

svgfig.VLine.x1

Definition at line 2146 of file svgfig.py.

Referenced by svgfig.Line.__repr__(), svgfig.LineGlobal.__repr__(), svgfig.HLine.__repr__(), svgfig.Rect.__repr__(), svgfig.LineAxis.__repr__(), svgfig.Rect.Path(), and svgfig.LineGlobal.SVG().

svgfig.VLine.x2

Definition at line 2147 of file svgfig.py.

Referenced by svgfig.Line.__repr__(), svgfig.LineGlobal.__repr__(), svgfig.HLine.__repr__(), svgfig.Rect.__repr__(), svgfig.LineAxis.__repr__(), svgfig.Rect.Path(), and svgfig.LineGlobal.SVG().