BarGraphItem CSV export and documentation
This commit is contained in:
parent
ad7453c781
commit
18661cab0d
8
doc/source/graphicsItems/bargraphitem.rst
Normal file
8
doc/source/graphicsItems/bargraphitem.rst
Normal file
@ -0,0 +1,8 @@
|
||||
BarGraphItem
|
||||
============
|
||||
|
||||
.. autoclass:: pyqtgraph.BarGraphItem
|
||||
:members:
|
||||
|
||||
.. automethod:: pyqtgraph.BarGraphItem.__init__
|
||||
|
@ -40,6 +40,7 @@ class BarGraphItem(GraphicsObject):
|
||||
y0=None,
|
||||
x1=None,
|
||||
y1=None,
|
||||
name=None,
|
||||
height=None,
|
||||
width=None,
|
||||
pen=None,
|
||||
@ -166,3 +167,15 @@ class BarGraphItem(GraphicsObject):
|
||||
if self.picture is None:
|
||||
self.drawPicture()
|
||||
return self._shape
|
||||
|
||||
def implements(self, interface=None):
|
||||
ints = ['plotData']
|
||||
if interface is None:
|
||||
return ints
|
||||
return interface in ints
|
||||
|
||||
def name(self):
|
||||
return self.opts.get('name', None)
|
||||
|
||||
def getData(self):
|
||||
return self.opts.get('x'), self.opts.get('height')
|
||||
|
Loading…
Reference in New Issue
Block a user