Skip to content

Commit a17af6b

Browse files
authored
Merge pull request #1969 from djarecka/matplotlib_backend
changing backend in ArtifactDetect
2 parents ca30015 + b856195 commit a17af6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/algorithms/rapidart.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ def _list_outputs(self):
330330
return outputs
331331

332332
def _plot_outliers_with_wave(self, wave, outliers, name):
333+
import matplotlib
334+
matplotlib.use(config.get("execution", "matplotlib_backend"))
333335
import matplotlib.pyplot as plt
334336
plt.plot(wave)
335337
plt.ylim([wave.min(), wave.max()])

0 commit comments

Comments
 (0)