File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class Uplot(displayio.Group):
58
58
:param int box_color: allows to choose the box line color. Defaults to white ''0xFFFFFF``
59
59
:param int tickx_height: x axes tick height in pixels. Defaults to 8.
60
60
:param int ticky_height: y axes tick height in pixels. Defaults to 8.
61
+ :param int scale: scale of the plot. Defaults to 1.
61
62
62
63
"""
63
64
@@ -73,11 +74,12 @@ def __init__(
73
74
box_color : int = 0xFFFFFF ,
74
75
tickx_height : int = 8 ,
75
76
ticky_height : int = 8 ,
77
+ scale : int = 1
76
78
) -> None :
77
- if width not in range (50 , 481 ):
79
+ if width not in range (50 , 481 ) and scale == 1 :
78
80
print ("Be sure to verify your values. Defaulting to width=100" )
79
81
width = 100
80
- if height not in range (50 , 321 ):
82
+ if height not in range (50 , 321 ) and scale == 1 :
81
83
print ("Be sure to verify your values. Defaulting to height=100" )
82
84
height = 100
83
85
if x + width > 481 :
You can’t perform that action at this time.
0 commit comments