BarGraphItem CSV export and documentation

This commit is contained in:
Axel Jacobsen 2019-08-06 09:32:43 -07:00
parent ad7453c781
commit 18661cab0d
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,8 @@
BarGraphItem
============
.. autoclass:: pyqtgraph.BarGraphItem
:members:
.. automethod:: pyqtgraph.BarGraphItem.__init__

View File

@ -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')