File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import math
17
17
18
- from qwt .text import QwtText
19
- from qwt .scale_widget import QwtScaleWidget
20
- from qwt .plot import QwtPlot
21
- from qwt .scale_draw import QwtAbstractScaleDraw
22
-
18
+ from qtpy .QtCore import QRectF , QSize , Qt
23
19
from qtpy .QtGui import QFont , QRegion
24
- from qtpy .QtCore import QSize , Qt , QRectF
25
20
21
+ from qwt .plot import QwtPlot
22
+ from qwt .scale_draw import QwtAbstractScaleDraw
23
+ from qwt .scale_widget import QwtScaleWidget
24
+ from qwt .text import QwtText
26
25
27
26
QWIDGETSIZE_MAX = (1 << 24 ) - 1
28
27
@@ -681,7 +680,7 @@ def __init__(self):
681
680
if self .__data .legendRatio < 1.0 :
682
681
legendH = min ([legendH , int (h / (1.0 - self .__data .legendRatio ))])
683
682
h += legendH + self .__data .spacing
684
- return QSize (w , h )
683
+ return QSize (int ( w ), int ( h ) )
685
684
686
685
def layoutLegend (self , options , rect ):
687
686
"""
You can’t perform that action at this time.
0 commit comments