0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

fix: fixed default config options

This commit is contained in:
2023-12-07 18:03:29 +01:00
parent 1084bc0a80
commit 03bdf980bc
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ class PlotSettings(BaseModel):
"""
background_color: str
axis_width: Optional[int] = None
axis_width: Optional[int] = 2
axis_color: Optional[str] = None
num_columns: int
colormap: str

View File

@ -302,7 +302,7 @@ class BECMonitor(pg.GraphicsLayoutWidget):
"""
if plot_settings.get("show_grid", False):
plot.showGrid(x=True, y=True, alpha=0.5)
pen_width = plot_settings.get("axis_width", 2)
pen_width = plot_settings.get("axis_width")
color = plot_settings.get("axis_color")
if color is None:
if plot_settings["background_color"].lower() == "black":