Currently the plots all have visible=False automatically so that all of the layers aren't stacked on top of each other. This is slightly inconvenient when opening a plot, and should be able to be easily fixed by instead passing in the visible parameter as a variable and setting it to be True for the first trace that is called, and False for all of the rest.
For example, in osm_shift_monitors.py we could update:
-
Line 108 to read:
def _plot_per_cenwave(self, df: pd.DataFrame, shift: str, outliers: pd.DataFrame = None, vis: bool = True) -> int: (I think, I still don't really understand this format)
-
Line 133 & Line 154 & Line 179 & Line 203 to read:
visible=vis
-
Line 224 to read:
all_n_traces = self._plot_per_cenwave(self.data, self.shift, outliers)
-
Line 237 to read:
n_fp_traces = self._plot_per_cenwave(group, self.shift, outlier_group, vis=False)
This would then default to open the "All" trace when the plot is first opened up, rather than a blank plot. This could be different for different monitors to show what the most important button is in the top level trace.
Currently the plots all have
visible=Falseautomatically so that all of the layers aren't stacked on top of each other. This is slightly inconvenient when opening a plot, and should be able to be easily fixed by instead passing in the visible parameter as a variable and setting it to be True for the first trace that is called, and False for all of the rest.For example, in
osm_shift_monitors.pywe could update:Line 108 to read:
def _plot_per_cenwave(self, df: pd.DataFrame, shift: str, outliers: pd.DataFrame = None, vis: bool = True) -> int:(I think, I still don't really understand this format)Line 133 & Line 154 & Line 179 & Line 203 to read:
visible=visLine 224 to read:
all_n_traces = self._plot_per_cenwave(self.data, self.shift, outliers)Line 237 to read:
n_fp_traces = self._plot_per_cenwave(group, self.shift, outlier_group, vis=False)This would then default to open the "All" trace when the plot is first opened up, rather than a blank plot. This could be different for different monitors to show what the most important button is in the top level trace.