mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
parent
30cb51846d
commit
85bbe0b094
@ -5,6 +5,7 @@ import textwrap
|
|||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
from typing import Callable, Optional, Union
|
from typing import Callable, Optional, Union
|
||||||
|
|
||||||
|
import matplotlib
|
||||||
import matplotlib.dates as mdates
|
import matplotlib.dates as mdates
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@ -17,6 +18,9 @@ from akkudoktoreos.optimization.genetic import OptimizationParameters
|
|||||||
from akkudoktoreos.utils.datetimeutil import to_datetime
|
from akkudoktoreos.utils.datetimeutil import to_datetime
|
||||||
|
|
||||||
logger = get_logger(__name__)
|
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):
|
class VisualizationReport(ConfigMixin):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user