Human: Subscripting text in matplotlib labels Assistant: 
Here is some code to subscript text 'H20' with '2' as subscripted in matplotlib labels for arrays 'x' and 'y'.

plt.plot(x, y, label='$H_2O$')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.