Commit 8adbbfd5 authored by lukas leufen's avatar lukas leufen

error occurred if only a single subplot was created, now squeeze is disabled, bug is fixed

parent 923775d4
Pipeline #52386 passed with stages
in 8 minutes and 36 seconds
......@@ -838,8 +838,8 @@ class PlotTimeSeries:
factor = 1
if self._sampling == "h":
factor = 2
f, ax = plt.subplots((end - start + 1) * factor, sharey=True, figsize=(50, 30))
return f, ax, factor
f, ax = plt.subplots((end - start + 1) * factor, sharey=True, figsize=(50, 30), squeeze=False)
return f, ax[:, 0], factor
def _plot_ahead(self, ax, data):
color = sns.color_palette("Blues_d", self._window_lead_time).as_hex()
......
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