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