import pandas as pd
import matplotlib.pyplot as plt

data = pd.read_csv('RESU/coil_energization.dat', delim_whitespace=True, header=None)

names_file = open('RESU/coil_energization.dat.names')
data.columns = [line.split('res: ')[1].replace('\n', '') for line in names_file.readlines() if 'res:' in line]

plt.plot(data['time'], data['i_component(1)'], label='Racetrack 1')
plt.plot(data['time'], data['i_component(2)'], label='Racetrack 2')
#plt.plot(data['time'], data['i_d1'], label='Dump Resistor')
plt.plot(data['time'], data['i_s1'], label='Source')
plt.legend()
plt.savefig('Figures/ramp_racetracks.png')
plt.show()

b0e5e311928d3bef01ee119cd4cea8c11e6246d6
<mask token>

<mask token>
plt.plot(data['time'], data['i_component(1)'], label='Racetrack 1')
plt.plot(data['time'], data['i_component(2)'], label='Racetrack 2')
plt.plot(data['time'], data['i_s1'], label='Source')
plt.legend()
plt.savefig('Figures/ramp_racetracks.png')
plt.show()

<mask token>
data = pd.read_csv('RESU/coil_energization.dat', delim_whitespace=True,
    header=None)
names_file = open('RESU/coil_energization.dat.names')
data.columns = [line.split('res: ')[1].replace('\n', '') for line in
    names_file.readlines() if 'res:' in line]
plt.plot(data['time'], data['i_component(1)'], label='Racetrack 1')
plt.plot(data['time'], data['i_component(2)'], label='Racetrack 2')
plt.plot(data['time'], data['i_s1'], label='Source')
plt.legend()
plt.savefig('Figures/ramp_racetracks.png')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_csv('RESU/coil_energization.dat', delim_whitespace=True,
    header=None)
names_file = open('RESU/coil_energization.dat.names')
data.columns = [line.split('res: ')[1].replace('\n', '') for line in
    names_file.readlines() if 'res:' in line]
plt.plot(data['time'], data['i_component(1)'], label='Racetrack 1')
plt.plot(data['time'], data['i_component(2)'], label='Racetrack 2')
plt.plot(data['time'], data['i_s1'], label='Source')
plt.legend()
plt.savefig('Figures/ramp_racetracks.png')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

data = pd.read_csv('RESU/coil_energization.dat', delim_whitespace=True, header=None)

names_file = open('RESU/coil_energization.dat.names')
data.columns = [line.split('res: ')[1].replace('\n', '') for line in names_file.readlines() if 'res:' in line]

plt.plot(data['time'], data['i_component(1)'], label='Racetrack 1')
plt.plot(data['time'], data['i_component(2)'], label='Racetrack 2')
#plt.plot(data['time'], data['i_d1'], label='Dump Resistor')
plt.plot(data['time'], data['i_s1'], label='Source')
plt.legend()
plt.savefig('Figures/ramp_racetracks.png')
plt.show()
