DeMorgans the logic for better readability.
This commit is contained in:
parent
654b76e6a3
commit
a2fb00633a
@ -46,10 +46,10 @@ class ErrorBarItem(GraphicsObject):
|
||||
This method was added in version 0.9.9. For prior versions, use setOpts.
|
||||
"""
|
||||
self.opts.update(opts)
|
||||
if self.opts['x'] is not None and self.opts['y'] is not None:
|
||||
self.setVisible(True)
|
||||
else:
|
||||
if self.opts['x'] is None or self.opts['y'] is None:
|
||||
self.setVisible(False)
|
||||
else:
|
||||
self.setVisible(True)
|
||||
self.path = None
|
||||
self.update()
|
||||
self.prepareGeometryChange()
|
||||
|
Loading…
Reference in New Issue
Block a user