@@ -48,7 +48,11 @@ class BarGraphWidget(QtWidgets.QWidget):
4848 def __init__ (self ):
4949 super ().__init__ ()
5050 layout = QtWidgets .QVBoxLayout (self )
51- self .canvas = FigureCanvas (figure .Figure (figsize = (5 , 5 )))
51+ self .fig = figure .Figure (figsize = (5 , 5 ))
52+ self .fig .subplots_adjust (bottom = .0 , top = 0.975 , left = .0 , right = 1. )
53+ self .canvas = FigureCanvas (self .fig )
54+
55+
5256 layout .addWidget (self .canvas )
5357 self .nbrCategories = 0
5458 self .offset_nullValue = 0.01
@@ -111,7 +115,7 @@ def changeCategories(self, categories: int):
111115
112116 for i , cat in enumerate (categories ):
113117 posy = (bottom [i ] * 2 + top [i ]) / 3.0
114- self .ax .text (0.05 , posy , cat , fontdict = font )
118+ self .ax .text (0.05 , posy , cat . replace ( '_' , ' ' ) , fontdict = font )
115119
116120 self .ax .axis ("off" )
117121 self .canvas .draw ()
@@ -202,7 +206,7 @@ class HandAnalysisWidget(QtWidgets.QGroupBox):
202206 """
203207
204208 def __init__ (self , handID : int , showInput : bool = True ):
205- super ().__init__ (("Right" if handID == 1 else "left " ) + " hand" )
209+ super ().__init__ (("Right" if handID == 1 else "Left " ) + " hand" )
206210 self .setStyleSheet (self .stylesheet )
207211 self .handID = handID
208212 self .showInput = showInput
0 commit comments