From f4a8783262d8e44f931281a28af5d5894329865d Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Mon, 18 Dec 2017 07:08:49 +0200 Subject: [PATCH] matplotlib.use() must be called before pyplot import --- scripts/plot_dataframe.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/plot_dataframe.py b/scripts/plot_dataframe.py index 03f8433cf..0d193726d 100755 --- a/scripts/plot_dataframe.py +++ b/scripts/plot_dataframe.py @@ -1,11 +1,10 @@ #!/usr/bin/env python3 import matplotlib # Install PYQT5 manually if you want to test this helper function +matplotlib.use("Qt5Agg") import matplotlib.pyplot as plt from freqtrade import exchange, analyze -matplotlib.use("Qt5Agg") - def plot_analyzed_dataframe(pair: str) -> None: """