Skip to content

Commit 958934e

Browse files
authored
Merge pull request #3145 from ajdapretnar/viz-sizehint
Introduce sizeHints for Scatter Plot
2 parents 161322d + 520e525 commit 958934e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Orange/widgets/visualize/owscatterplot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import numpy as np
44

5-
from AnyQt.QtCore import Qt, QTimer
5+
from AnyQt.QtCore import Qt, QTimer, QSize
66
from AnyQt.QtGui import QPen, QPalette
77
from AnyQt.QtWidgets import QApplication
88

@@ -218,6 +218,10 @@ def __init__(self):
218218
for ext in w.EXTENSIONS:
219219
self.graph_writers[ext] = w
220220

221+
222+
def sizeHint(self):
223+
return QSize(1132, 708)
224+
221225
def keyPressEvent(self, event):
222226
super().keyPressEvent(event)
223227
self.graph.update_tooltip(event.modifiers())

0 commit comments

Comments
 (0)