You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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.
The text was updated successfully, but these errors were encountered:
Rplesha
changed the title
Allow for figures to load automatically
Allow for figures to load when first opened
Apr 30, 2020
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.
The text was updated successfully, but these errors were encountered: