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
|
background_color: str
|
||||||
axis_width: Optional[int] = None
|
axis_width: Optional[int] = 2
|
||||||
axis_color: Optional[str] = None
|
axis_color: Optional[str] = None
|
||||||
num_columns: int
|
num_columns: int
|
||||||
colormap: str
|
colormap: str
|
||||||
|
@ -302,7 +302,7 @@ class BECMonitor(pg.GraphicsLayoutWidget):
|
|||||||
"""
|
"""
|
||||||
if plot_settings.get("show_grid", False):
|
if plot_settings.get("show_grid", False):
|
||||||
plot.showGrid(x=True, y=True, alpha=0.5)
|
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")
|
color = plot_settings.get("axis_color")
|
||||||
if color is None:
|
if color is None:
|
||||||
if plot_settings["background_color"].lower() == "black":
|
if plot_settings["background_color"].lower() == "black":
|
||||||
|
Reference in New Issue
Block a user