Package Scientific :: Package QtWidgets :: Module QtPlotCanvas :: Class VerticalLine
[frames] | no frames]

Class VerticalLine

PolyPoints --+    
             |    
      PolyLine --+
                 |
                VerticalLine

A vertical line

Instance Methods
 
__init__(self, xpos, **attr)
 
draw(self, canvas, bbox)
 
writeToFile(self, file, separator)

Inherited from PolyPoints: boundingBox, scaleAndShift

Method Details

__init__(self, xpos, **attr)
(Constructor)

 
Parameters:
  • xpos (float) - the x coordinate of the line
  • attr - line attributes
  • width - the line width (default: 1)
  • color - a string whose value is one of the color names defined by X-Windows (default: "black")
  • style - a Qt pen style object (default: Qt.SolidLine)
Overrides: PolyPoints.__init__

draw(self, canvas, bbox)

 
Overrides: PolyLine.draw

writeToFile(self, file, separator)

 
Overrides: PolyPoints.writeToFile