Merge pull request #530 from justengel/plot_item_update

Fixed issue where setData only updated opts if data is given
This commit is contained in:
Luke Campagnola 2018-09-28 15:35:27 -07:00 committed by GitHub
commit cce7a83e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,6 +442,8 @@ class PlotDataItem(GraphicsObject):
if y is None:
self.updateItems()
profiler('update items')
return
if y is not None and x is None:
x = np.arange(len(y))