orange3 icon indicating copy to clipboard operation
orange3 copied to clipboard

Scatter Plot: Crash with time data

Open VesnaT opened this issue 3 years ago • 0 comments

What's wrong?

Traceback (most recent call last):
  File "/Users/vesna/pyqtgraph/pyqtgraph/graphicsItems/AxisItem.py", line 636, in paint
    specs = self.generateDrawSpecs(painter)
  File "/Users/vesna/pyqtgraph/pyqtgraph/graphicsItems/AxisItem.py", line 955, in generateDrawSpecs
    tickLevels = self.tickValues(self.range[0], self.range[1], lengthInPixels)
  File "/Users/vesna/orange3/Orange/widgets/visualize/owscatterplotgraph.py", line 354, in tickValues
    spacing = min(b - a for a, b in zip(ticks[:-1], ticks[1:]))
ValueError: min() arg is an empty sequence

How can we reproduce the problem?

Database (Online Retail) -> resize the ScatterPlot widget to the minimum width -> ScatterPlot (set x axis to InvoiceDate) -> crash

image

VesnaT avatar Aug 02 '22 09:08 VesnaT