We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a5a98b commit 992b2bcCopy full SHA for 992b2bc
netpyne/plotting/plotCSD.py
@@ -1,10 +1,13 @@
1
# PLOTTING CSD
2
3
+from netpyne import __gui__
4
+if __gui__:
5
+ import matplotlib
6
+ from matplotlib import pyplot as plt
7
+
8
from ..analysis.utils import exception, _showFigure
9
import numpy as np
10
import scipy
-import matplotlib
-from matplotlib import pyplot as plt
11
12
def getPaddedCSD (CSDData, pad):
13
# pad the first/last row of CSDData by replication (to avoid edge artifacts when drawing colors plots)
0 commit comments