DeMorgans the logic for better readability.

This commit is contained in:
Kenneth Lyons 2019-06-07 00:00:30 -07:00
parent 654b76e6a3
commit a2fb00633a

View File

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