Set path attr in case ErrorBarItem initialized without data
This commit is contained in:
parent
51b3201564
commit
2817b95c93
@ -59,6 +59,7 @@ class ErrorBarItem(GraphicsObject):
|
|||||||
|
|
||||||
x, y = self.opts['x'], self.opts['y']
|
x, y = self.opts['x'], self.opts['y']
|
||||||
if x is None or y is None:
|
if x is None or y is None:
|
||||||
|
self.path = p
|
||||||
return
|
return
|
||||||
|
|
||||||
beam = self.opts['beam']
|
beam = self.opts['beam']
|
||||||
@ -146,4 +147,4 @@ class ErrorBarItem(GraphicsObject):
|
|||||||
self.drawPath()
|
self.drawPath()
|
||||||
return self.path.boundingRect()
|
return self.path.boundingRect()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user