mirror of
				https://github.com/Akkudoktor-EOS/EOS.git
				synced 2025-10-31 06:46:20 +00:00 
			
		
		
		
	| @@ -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): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user