Skip to content
Snippets Groups Projects
Commit 62ee1186 authored by many's avatar many
Browse files

define matplotlib backend (new matplotlib version requires this)

parent 5fe12545
No related branches found
No related tags found
1 merge request!62Cleanup 0.2.0
Pipeline #16674 passed
import tempfile
from dataclasses import dataclass, field
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
......@@ -40,6 +40,7 @@ class ProbeContainer:
tmpdir = tempfile.mkdtemp()
path = tmpdir + "/plot.png"
plotprobelist = self.filter_probes(groupname, positions)
matplotlib.use('Agg')
plt.figure(figsize=(32, 24), dpi=200)
for probe in plotprobelist:
if probe.values[value][0].shape == (1,):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment