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.Dots Class Reference

Public Member Functions

def __init__
 
def __repr__
 
def SVG
 

Public Attributes

 attr
 
 d
 
 height
 
 symbol
 
 width
 

Static Public Attributes

dictionary defaults = {}
 

Detailed Description

Dots draws SVG symbols at a set of points.

d                      required               list of (x,y) points
symbol                 default=None           SVG symbol or a new identifier to
                                              label an auto-generated symbol;
                                              if None, use pre-defined _circular_dot
width, height          default=1, 1           width and height of the symbols
                                              in SVG coordinates
attribute=value pairs  keyword list           SVG attributes

Definition at line 1907 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.Dots.__init__ (   self,
  d = [],
  symbol = None,
  width = 1.,
  height = 1.,
  attr 
)

Definition at line 1923 of file svgfig.py.

1924  def __init__(self, d=[], symbol=None, width=1., height=1., **attr):
1925  self.d = list(d)
1926  self.width = width
1927  self.height = height
1929  self.attr = dict(self.defaults)
1930  self.attr.update(attr)
1931 
1932  if symbol == None:
1933  self.symbol = _circular_dot
1934  elif isinstance(symbol, SVG):
1935  self.symbol = symbol
1936  else:
1937  self.symbol = make_symbol(symbol)
def make_symbol
Definition: svgfig.py:1893
def __init__
Definition: svgfig.py:1923
dictionary defaults
Definition: svgfig.py:1918
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

Member Function Documentation

def svgfig.Dots.__repr__ (   self)

Definition at line 1920 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.Fig.d, svgfig.Plot.d, svgfig.Frame.d, svgfig.Path.d, svgfig.Poly.d, svgfig.Text.d, svgfig.TextGlobal.d, and svgfig.Dots.d.

1921  def __repr__(self):
1922  return "<Dots (%d nodes) %s>" % (len(self.d), self.attr)
def __repr__
Definition: svgfig.py:1920
def svgfig.Dots.SVG (   self,
  trans = None 
)
Apply the transformation "trans" and return an SVG object.

Definition at line 1938 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, svgfig.Plot.height, svgfig.Frame.height, svgfig.Dots.height, svgfig.Dots.symbol, svgfig.totrans(), edmStreamStallGrapher.trans, svgfig.Plot.width, svgfig.Frame.width, and svgfig.Dots.width.

1939  def SVG(self, trans=None):
1940  """Apply the transformation "trans" and return an SVG object."""
1941  if isinstance(trans, basestring): trans = totrans(trans)
1942 
1943  output = SVG("g", SVG("defs", self.symbol))
1944  id = "#%s" % self.symbol["id"]
1945 
1946  for p in self.d:
1947  x, y = p[0], p[1]
1948 
1949  if trans == None: X, Y = x, y
1950  else: X, Y = trans(x, y)
1951 
1952  item = SVG("use", x=X, y=Y, xlink__href=id)
1953  if self.width != None: item["width"] = self.width
1954  if self.height != None: item["height"] = self.height
1955  output.append(item)
1956 
1957  return output
def totrans
Definition: svgfig.py:597

Member Data Documentation

svgfig.Dots.attr

Definition at line 1928 of file svgfig.py.

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

svgfig.Dots.d

Definition at line 1924 of file svgfig.py.

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

dictionary svgfig.Dots.defaults = {}
static

Definition at line 1918 of file svgfig.py.

svgfig.Dots.height

Definition at line 1926 of file svgfig.py.

Referenced by Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), Vispa.Gui.ConnectableWidget.ConnectableWidget.centerSinglePortVertically(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Gui.VispaWidget.VispaWidget.paint(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), svgfig.Dots.SVG(), and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().

svgfig.Dots.symbol

Definition at line 1932 of file svgfig.py.

Referenced by svgfig.Dots.SVG().

svgfig.Dots.width

Definition at line 1925 of file svgfig.py.

Referenced by python.rootplot.utilities.Hist.__init_TGraph(), Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), python.rootplot.root2matplotlib.Hist.bar(), python.rootplot.root2matplotlib.Hist.barh(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget.drawPortNames(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), Vispa.Views.PropertyView.PropertyView.resizeEvent(), Vispa.Views.PropertyView.PropertyView.sectionResized(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), svgfig.Dots.SVG(), and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().