Commit 7f478de2 authored by lukas leufen's avatar lukas leufen

make color scale robust for PlotSeparationOfScales, important: the separation...

make color scale robust for PlotSeparationOfScales, important: the separation of scales data handler can cause memory errors depending on your system's abilities
parent 22ad918c
Pipeline #52156 passed with stages
in 8 minutes and 9 seconds
......@@ -25,6 +25,11 @@ from mlair.helpers import TimeTrackingWrapper
logging.getLogger('matplotlib').setLevel(logging.WARNING)
# import matplotlib
# matplotlib.use("TkAgg")
# import matplotlib.pyplot as plt
class AbstractPlotClass:
"""
Abstract class for all plotting routines to unify plot workflow.
......@@ -1015,7 +1020,7 @@ class PlotSeparationOfScales(AbstractPlotClass):
station = dh.id_class.station[0]
data = data.sel(Stations=station)
# plt.subplots()
data.plot(x="datetime", y="window", col="filter", row="variables")
data.plot(x="datetime", y="window", col="filter", row="variables", robust=True)
self.plot_name = f"{orig_plot_name}_{station}"
self._save()
......
......@@ -11,7 +11,7 @@ from mlair.data_handler.data_handler_mixed_sampling import DataHandlerMixedSampl
def main(parser_args):
args = dict(sampling="daily",
sampling_inputs="hourly",
window_history_size=72,
window_history_size=24,
**parser_args.__dict__,
data_handler=DataHandlerMixedSamplingSeparationOfScales,
kz_filter_length=[100 * 24, 15 * 24],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment