Dear sir, I have used the script to draw the current-gate voltage curve from the transmission at different gate voltage and bias voltage = 0 V. But there is no curve shown in the figure after a long period of calculation. What is wrong with the script?
Script:
#make list of relevant gate voltages
gate_voltage_list=numpy.linspace(-1.0,1.0,11)*Volt
#make list to hold the current calculations
current_list=numpy.zeros(len(gate_voltage_list))
current_list=current_list.reshape(len(gate_voltage_list))
#specify the filename for the netcdf data file
filename="F:/MoS2/MoS2/VD=0.5V/gatescan-MoS2-0V-2.nc"
#loop through the gate voltages
for n in range(len(gate_voltage_list)):
transmission_spectrum=nlread('F:/MoS2/MoS2/VD=0.5V/gatescan-MoS2-0V-2.nc',
object_id="trans"+str(gate_voltage_list[n]))[0]
#plot the current as function of gatevoltage
import pylab
pylab.figure()
pylab.xlabel("Gate Voltage (V)")
pylab.ylabel("Current (A)")
pylab.show()