diff --git a/nipype/algorithms/rapidart.py b/nipype/algorithms/rapidart.py index b8aca927b6..b0511c0fc6 100644 --- a/nipype/algorithms/rapidart.py +++ b/nipype/algorithms/rapidart.py @@ -330,6 +330,8 @@ def _list_outputs(self): return outputs def _plot_outliers_with_wave(self, wave, outliers, name): + import matplotlib + matplotlib.use(config.get("execution", "matplotlib_backend")) import matplotlib.pyplot as plt plt.plot(wave) plt.ylim([wave.min(), wave.max()])