consistent naming

This commit is contained in:
2021-06-10 11:03:48 +02:00
parent 59888c07d4
commit 2182463004
2 changed files with 14 additions and 14 deletions

View File

@ -20,15 +20,15 @@ class Actor:
cfg.sp_cache_size.on_change("value", cb(self.do_update_cache_size))
if isinstance(cfg, ConfigDialog1D): #TODO
cfg.curves_latest.active = plt.line_latest.visible
cfg.curves_average.active = plt.line_average.visible
cfg.error_bands.active = plt.errband_latest.visible
cfg.error_bars.active = plt.errbars_latest.visible
cfg.cb_curves_latest.active = plt.line_latest.visible
cfg.cb_curves_average.active = plt.line_average.visible
cfg.cb_error_bands.active = plt.errband_latest.visible
cfg.cb_error_bars.active = plt.errbars_latest.visible
cfg.curves_latest.on_click(plt.show_curve_latest)
cfg.curves_average.on_click(plt.show_curve_average)
cfg.error_bands.on_click(plt.show_error_bands)
cfg.error_bars.on_click(plt.show_error_bars)
cfg.cb_curves_latest.on_click(plt.show_curve_latest)
cfg.cb_curves_average.on_click(plt.show_curve_average)
cfg.cb_error_bands.on_click(plt.show_error_bands)
cfg.cb_error_bars.on_click(plt.show_error_bars)
if isinstance(cfg, ConfigDialog2D): #TODO
cfg.sel_cmap_palette.value = plt.cmap_palette

View File

@ -10,16 +10,16 @@ class ConfigDialog1D(Column):
def __init__(self):
self.sp_cache_size = sp_cache_size = Spinner(title="Cache size:")
self.curves_latest = curves_latest = Checkbox(label="Latest Curve")
self.curves_average = curves_average = Checkbox(label="Average Curve")
self.cb_curves_latest = cb_curves_latest = Checkbox(label="Latest Curve")
self.cb_curves_average = cb_curves_average = Checkbox(label="Average Curve")
self.error_bars = error_bars = Checkbox(label="Error Bars")
self.error_bands = error_bands = Checkbox(label="Error Bands")
self.cb_error_bars = cb_error_bars = Checkbox(label="Error Bars")
self.cb_error_bands = cb_error_bands = Checkbox(label="Error Bands")
super().__init__(
sp_cache_size,
make_entry("Curves", curves_latest, curves_average),
make_entry("Errors", error_bars, error_bands)
make_entry("Curves", cb_curves_latest, cb_curves_average),
make_entry("Errors", cb_error_bars, cb_error_bands)
)