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.HLine Class Reference
Inheritance diagram for svgfig.HLine:
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
 
 y
 
 y1
 
 y2
 
- 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 horizontal line.

HLine(x1, x2, y, attribute=value)

x1, x2                  required        x range
y                       required        y position
attribute=value pairs   keyword list    SVG attributes

Definition at line 2150 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.HLine.__init__ (   self,
  x1,
  x2,
  y,
  attr 
)

Definition at line 2164 of file svgfig.py.

2165  def __init__(self, x1, x2, y, **attr):
2166  self.y = y
2167  self.attr = dict(self.defaults)
2168  self.attr.update(attr)
2169  Line.__init__(self, x1, y, x2, y, **self.attr)
def __init__
Definition: svgfig.py:2164
dictionary defaults
Definition: svgfig.py:1509

Member Function Documentation

def svgfig.HLine.__repr__ (   self)

Definition at line 2161 of file svgfig.py.

References svgfig.SVG.attr, svgfig.Path.attr, svgfig.Curve.attr, reco::PdfInfo.x1, L1MonitorDigi.x1(), L1DataEmulDigi.x1(), TrackingTools_PatternTools::dictionary.x1, DDTrap.x1(), DataFormats_TrackReco::dictionary.x1, DataFormats_METReco::dictionary.x1, DDPseudoTrap.x1(), Exhume::CrossSection.x1, svgfig.VLine.x1, svgfig.YAxis.x1, reco::PdfInfo.x2, L1MonitorDigi.x2(), L1DataEmulDigi.x2(), TrackingTools_PatternTools::dictionary.x2, DDTrap.x2(), DataFormats_TrackReco::dictionary.x2, DDPseudoTrap.x2(), DataFormats_METReco::dictionary.x2, Exhume::CrossSection.x2, svgfig.VLine.x2, svgfig.YAxis.x2, MuonGeometryArrange::MGACollection.y, svgfig.Plot.y, svgfig.Frame.y, svgfig.Curve.Sample.y, svgfig.Text.y, svgfig.TextGlobal.y, and svgfig.HLine.y.

Referenced by data_sources.json_file.__str__().

2162  def __repr__(self):
2163  return "<HLine (%g, %g) at y=%s %s>" % (self.x1, self.x2, self.y, self.attr)
def __repr__
Definition: svgfig.py:2161
def svgfig.HLine.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 2170 of file svgfig.py.

2171  def Path(self, trans=None, local=False):
2172  """Apply the transformation "trans" and return a Path object in
2173  global coordinates. If local=True, return a Path in local coordinates
2174  (which must be transformed again)."""
2175  self.y1 = self.y
2176  self.y2 = self.y
2177  return Line.Path(self, trans, local)

Member Data Documentation

svgfig.HLine.attr

Definition at line 2166 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.HLine.defaults = {}
static

Definition at line 2159 of file svgfig.py.

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

svgfig.HLine.y

Definition at line 2165 of file svgfig.py.

Referenced by python.rootplot.utilities.Hist.__getitem__(), python.rootplot.utilities.Hist.__init_TGraph(), python.rootplot.utilities.Hist.__iter__(), svgfig.HLine.__repr__(), svgfig.Ellipse.__repr__(), python.rootplot.utilities.Hist.__setitem__(), Vispa.Gui.WidgetContainer.WidgetContainer.autosize(), python.rootplot.root2matplotlib.Hist.bar(), python.rootplot.root2matplotlib.Hist.barh(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), python.rootplot.root2matplotlib.Hist2D.box(), python.rootplot.root2matplotlib.Hist2D.contour(), python.rootplot.utilities.Hist.divide_wilson(), python.rootplot.root2matplotlib.Hist.errorbar(), python.rootplot.root2matplotlib.Hist.errorbarh(), python.rootplot.root2matplotlib.Hist.hist(), python.rootplot.utilities.Hist.min(), geometryXMLparser.Alignable.pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), python.rootplot.utilities.Hist.scale(), python.rootplot.utilities.Hist.TGraph(), and python.rootplot.utilities.Hist.TH1F().

svgfig.HLine.y1

Definition at line 2174 of file svgfig.py.

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

svgfig.HLine.y2

Definition at line 2175 of file svgfig.py.

Referenced by svgfig.Rect.__repr__(), and svgfig.Rect.Path().