- 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:
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user