module purge module load nstx/mdsplus_alpha module load python
python
import matplotlib.pyplot as plt import MDSplus as mds shot = 141398 tree = 'wf' node = '\IP' # or \IP1 in the Engineering tree skylark = mds.Connection('skylark') skylark.openTree(tree, shot) data = skylark.get(node).value time = skylark.get('dim_of({})'.format(node)).value plt.plot(time, data) newtitle = node + ' for '+str(shot) plt.title(newtitle) plt.show()