diff --git a/Orange/widgets/visualize/owscatterplotgraph.py b/Orange/widgets/visualize/owscatterplotgraph.py index bfc14f073f8..96783a0a95d 100644 --- a/Orange/widgets/visualize/owscatterplotgraph.py +++ b/Orange/widgets/visualize/owscatterplotgraph.py @@ -1,7 +1,6 @@ import sys import itertools import warnings -import threading from xml.sax.saxutils import escape from math import log10, floor, ceil @@ -219,18 +218,10 @@ def __init__(self, scatter_widget, parent=None, _="None", view_box=InteractiveVi class ScatterPlotItem(pg.ScatterPlotItem): - def __init__(self, *args, **kwargs): - self.lock = threading.Lock() - super().__init__(*args, **kwargs) - def paint(self, painter, option, widget=None): - with self.lock: - painter.setRenderHint(QPainter.SmoothPixmapTransform, True) - super().paint(painter, option, widget) + painter.setRenderHint(QPainter.SmoothPixmapTransform, True) + super().paint(painter, option, widget) - def setData(self, *args, **kwargs): - with self.lock: - super().setData(*args ,**kwargs) def _define_symbols(): """