ass1: Add T_c vs rho diagram, draft other questions
This commit is contained in:
@ -31,7 +31,8 @@ df = pd.DataFrame(
|
||||
['Hf', .38, 340., '[webb]', '[crc]'],
|
||||
['Ir', .1, 47., '[webb]', 'at 273 K [crc]'],
|
||||
['Lu', .1, 582., '[webb]', '[crc]'],
|
||||
['Be', 1440, 37.6, '[webb]', '[crc]'],
|
||||
#['Be', 1440, 37.6, '[webb]', '[crc]'],
|
||||
['Be', .026, 37.6, '[schmidt] (but [webb] reports 1440 K)', '[crc]'],
|
||||
['W', .01, 54.4, '[webb]', '[crc]'],
|
||||
['Li', .0004, 95.5, '[webb]', '[crc]'],
|
||||
['Rh', .0003, 43., '[webb]', 'at 273 K [crc]'],
|
||||
@ -47,3 +48,15 @@ table = re.sub(r'\[(\w+)\]', r'\\cite{\1}', table)
|
||||
|
||||
with open('sc_elements.tex', 'w') as table_file:
|
||||
table_file.write(table)
|
||||
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
fig, ax = plt.subplots(figsize=(15, 9))
|
||||
df.plot('rho_300', 'T_c', kind='scatter', ax=ax)
|
||||
|
||||
for k, v in df.iterrows():
|
||||
ax.annotate(v['element'], (v['rho_300'], v['T_c']))
|
||||
|
||||
#fig.show()
|
||||
fig.savefig('/home/kvkempen/Documents/20212022Q3/Superconductivity/assignments/sc_elements.pdf')
|
||||
plt.close(fig)
|
||||
|
||||
Reference in New Issue
Block a user