nexus: guard against optional matplotlib dependency

This commit is contained in:
Jaron Krogel 2020-02-04 09:46:14 -05:00
parent f0597a550c
commit 38e80e7a7f
1 changed files with 6 additions and 1 deletions

View File

@ -41,7 +41,7 @@ from subprocess import Popen
from execute import execute
import numpy as np
from numpy import linspace,array,zeros,append,mgrid,empty,exp,minimum,maximum,sqrt,arange
import matplotlib.pyplot as plt
from fileio import TextFile
from xmlreader import readxml
from superstring import string2val,split_delims
@ -54,6 +54,11 @@ from physical_system import PhysicalSystem
from plotting import *
from debug import *
try:
import matplotlib.pyplot as plt
except:
plt = unavailable('matplotlib','pyplot')
#end try
def pp_elem_label(filename,guard=False):