Skip to content

Commit

Permalink
owpaintdata: Optimize ScatterPlotItem construction
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Jan 16, 2025
1 parent fdb9af2 commit 884a7a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Orange/widgets/data/owpaintdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,10 +1252,9 @@ def pen(color):
pens = pen_table[colors_index]
brushes = brush_table[colors_index]
self._scatter_item = pg.ScatterPlotItem(
x, y, symbol="+", brush=brushes, pen=pens
x, y, symbol="+", brush=brushes, pen=pens, size=self.symbol_size
)
self.plot.addItem(self._scatter_item)
self.set_symbol_size()

def _attr_name_changed(self):
self.plot.getAxis("bottom").setLabel(self.attr1)
Expand Down

0 comments on commit 884a7a3

Please sign in to comment.