<jupyter_start><jupyter_text>main figure 5<jupyter_code>data = xr.open_dataset(b'data/paper_eso.nc')
data = data.sel(delta_epsilon=-0.05, shape='square', grid=0.5)
data = misc.reduce_dimensions(data)
labels = {
    'both': 'Total',
    'direct': 'Direct Rashba',
    'rashba': 'Rashba'
}
    

plt.figure(figsize=(3, 3))
for soi in data.soi:
    x = data.sel(soi=soi).Ex.data
    y = data.sel(soi=soi).energy_so  
    plt.plot(1000*x, 1000 * y, label=labels[str(soi.data)])

    
plt.xlabel(r'$E_x$ (V/$\mu$m)', fontsize=16)
plt.ylabel(r'$E_\mathrm{so} (meV)$', fontsize=16)
plt.xlim([0,10])
plt.tick_params(labelsize=15)
plt.tick_params(labelsize=15)
plt.legend(fontsize=12,frameon=False)


plt.savefig('figures/fig_5inset.pdf',transparent=True, bbox_inches='tight', pad_inches=0.1)
plt.savefig('figures/fig_5inset.png',transparent=True, bbox_inches='tight', pad_inches=0.1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19005524861878453, 'fraction_numerical': 0.03867403314917127, 'mean_word_length': 5.916030534351145, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '10869', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 428, 'n_tokens_neox': 391, 'n_words': 48, 'path': 'analysis/paper_main_eso.ipynb', 'repo_name': 'RafalSkolasinski/simulation-codes-arxiv-1806.01815', 'size': '905'}