CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
svgfig.XErrorBars Class Reference

Public Member Functions

def __init__ (self, d=[], attr)
 
def __repr__ (self)
 
def SVG (self, trans=None)
 

Public Attributes

 attr
 
 d
 

Static Public Attributes

dictionary defaults = {"stroke-width":"0.25pt"}
 

Detailed Description

Draws x error bars at a set of points. This is usually used
before (under) a set of Dots at the same points.

XErrorBars(d, attribute=value)

d                       required        list of (x,y,xerr...) points
attribute=value pairs   keyword list    SVG attributes

If points in d have

    * 3 elements, the third is the symmetric error bar
    * 4 elements, the third and fourth are the asymmetric lower and
      upper error bar. The third element should be negative,
      e.g. (5, 5, -1, 2) is a bar from 4 to 7.
    * more than 4, a tick mark is placed at each value. This lets
      you nest errors from different sources, correlated and
      uncorrelated, statistical and systematic, etc.

Definition at line 3279 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.XErrorBars.__init__ (   self,
  d = [],
  attr 
)

Definition at line 3303 of file svgfig.py.

3303  def __init__(self, d=[], **attr):
3304  self.d = list(d)
3305 
3306  self.attr = dict(self.defaults)
3307  self.attr.update(attr)
3308 
dictionary defaults
Definition: svgfig.py:3298
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
def __init__(self, d=[], attr)
Definition: svgfig.py:3303

Member Function Documentation

def svgfig.XErrorBars.__repr__ (   self)

Definition at line 3300 of file svgfig.py.

References svgfig.Fig.d, svgfig.Plot.d, svgfig.Frame.d, svgfig.Path.d, svgfig.Poly.d, svgfig.Text.d, svgfig.TextGlobal.d, svgfig.Dots.d, and svgfig.XErrorBars.d.

Referenced by data_sources.json_file.__str__().

3300  def __repr__(self):
3301  return "<XErrorBars (%d nodes)>" % len(self.d)
3302 
def __repr__(self)
Definition: svgfig.py:3300
def svgfig.XErrorBars.SVG (   self,
  trans = None 
)
Apply the transformation "trans" and return an SVG object.

Definition at line 3309 of file svgfig.py.

References svgfig.SVG.attr, svgfig.Path.attr, svgfig.Curve.attr, svgfig.Poly.attr, svgfig.Text.attr, svgfig.TextGlobal.attr, svgfig.Dots.attr, svgfig.Line.attr, svgfig.LineGlobal.attr, svgfig.VLine.attr, svgfig.HLine.attr, svgfig.Rect.attr, svgfig.Ellipse.attr, svgfig.Ticks.attr, svgfig.Axes.attr, svgfig.HGrid.attr, svgfig.VGrid.attr, svgfig.Grid.attr, svgfig.XErrorBars.attr, svgfig.Fig.d, svgfig.Plot.d, svgfig.Frame.d, svgfig.Path.d, svgfig.Poly.d, svgfig.Text.d, svgfig.TextGlobal.d, svgfig.Dots.d, svgfig.XErrorBars.d, SiStripPI.max, min(), and svgfig.totrans().

3309  def SVG(self, trans=None):
3310  """Apply the transformation "trans" and return an SVG object."""
3311  if isinstance(trans, str): trans = totrans(trans) # only once
3312 
3313  output = SVG("g")
3314  for p in self.d:
3315  x, y = p[0], p[1]
3316 
3317  if len(p) == 3: bars = [x - p[2], x + p[2]]
3318  else: bars = [x + pi for pi in p[2:]]
3319 
3320  start, end = min(bars), max(bars)
3321  output.append(LineAxis(start, y, end, y, start, end, bars, False, False, **self.attr).SVG(trans))
3322 
3323  return output
3324 
def SVG(self, trans=None)
Definition: svgfig.py:3309
T min(T a, T b)
Definition: MathUtil.h:58
def totrans(expr, vars=("x","y"), globals=None, locals=None)
Definition: svgfig.py:597

Member Data Documentation

svgfig.XErrorBars.attr

Definition at line 3306 of file svgfig.py.

Referenced by svgfig.XErrorBars.SVG(), and svgfig.YErrorBars.SVG().

svgfig.XErrorBars.d
dictionary svgfig.XErrorBars.defaults = {"stroke-width":"0.25pt"}
static

Definition at line 3298 of file svgfig.py.

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