- the Y axis labels are now rotated at 45 degrees allowing better space management

- changed the HUD color, with Light theme, to gray
This commit is contained in:
Marius Stanciu
2021-08-31 00:07:54 +03:00
committed by Marius
parent 2b40ba1c5f
commit a7d790ef7c
3 changed files with 5 additions and 1 deletions

View File

@@ -58,7 +58,8 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas):
if theme == 'white':
self.line_color = (0.3, 0.0, 0.0, 1.0)
self.rect_hud_color = Color('#0000FF10')
# self.rect_hud_color = Color('#0000FF10')
self.rect_hud_color = Color('#80808040')
self.text_hud_color = 'black'
else:
self.line_color = (0.4, 0.4, 0.4, 1.0)

View File

@@ -65,6 +65,7 @@ class VisPyCanvas(scene.SceneCanvas):
orientation='left', axis_color=tick_color, text_color=tick_color, font_size=a_fsize, axis_width=1
)
self.yaxis.width_max = 55
self.yaxis.axis._text.rotation = 45
self.grid_widget.add_widget(self.yaxis, row=1, col=0)
self.xaxis = scene.AxisWidget(