CMS 3D CMS Logo

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__ (self, y1, y2, x, attr)
 
def __repr__ (self)
 
def Path (self, trans=None, local=False)
 
- Public Member Functions inherited from svgfig.Line
def __init__ (self, x1, y1, x2, y2, arrow_start=None, arrow_end=None, attr)
 
def __repr__ (self)
 
def Path (self, trans=None, local=False)
 
def SVG (self, trans=None)
 
- Public Member Functions inherited from svgfig.Curve
def __init__ (self, f, low, high, loop=False, attr)
 
def __repr__ (self)
 
def Path (self, trans=None, local=False)
 
def sample (self, trans=None)
 end nested class More...
 
def subsample (self, left, right, depth, trans=None)
 
def SVG (self, trans=None)
 

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
 
bool 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 2123 of file svgfig.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2137 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)
2142 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
#define update(a, b)

Member Function Documentation

◆ __repr__()

def svgfig.VLine.__repr__ (   self)

Definition at line 2134 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, CTPPSFastTrack.y1(), DDTrap.y1(), DDPseudoTrap.y1(), svgfig.HLine.y1, svgfig.XAxis.y1, and svgfig.Line.y2.

Referenced by data_sources.json_file.__str__().

2134  def __repr__(self):
2135  return "<VLine (%g, %g) at x=%s %s>" % (self.y1, self.y2, self.x, self.attr)
2136 

◆ Path()

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 2143 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)
2150 

Member Data Documentation

◆ attr

svgfig.VLine.attr

◆ defaults

dictionary svgfig.VLine.defaults = {}
static

Definition at line 2132 of file svgfig.py.

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

◆ x

svgfig.VLine.x

◆ x1

svgfig.VLine.x1

◆ x2

svgfig.VLine.x2