Skip to content

Commit 992b2bc

Browse files
committed
check for GUI
1 parent 1a5a98b commit 992b2bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

netpyne/plotting/plotCSD.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# PLOTTING CSD
22

3+
from netpyne import __gui__
4+
if __gui__:
5+
import matplotlib
6+
from matplotlib import pyplot as plt
7+
38
from ..analysis.utils import exception, _showFigure
49
import numpy as np
510
import scipy
6-
import matplotlib
7-
from matplotlib import pyplot as plt
811

912
def getPaddedCSD (CSDData, pad):
1013
# pad the first/last row of CSDData by replication (to avoid edge artifacts when drawing colors plots)

0 commit comments

Comments
 (0)