Skip to content

Commit

Permalink
fix for #375 (#377)
Browse files Browse the repository at this point in the history
* fix for #375

* comment
  • Loading branch information
NormannK authored Jan 14, 2025
1 parent 30cb518 commit 85bbe0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/akkudoktoreos/utils/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections.abc import Sequence
from typing import Callable, Optional, Union

import matplotlib
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import numpy as np
Expand All @@ -17,6 +18,9 @@
from akkudoktoreos.utils.datetimeutil import to_datetime

logger = get_logger(__name__)
matplotlib.use(
"Agg"
) # non-interactive backend that can only write to files, backend needed to stay in main thread.


class VisualizationReport(ConfigMixin):
Expand Down

0 comments on commit 85bbe0b

Please sign in to comment.