Why does the first line work and the second not, please?
plt.setp(ax, yticks=[I0, IC], yticklabels=[r\'$I_0$\', r\'$I_\\mathrm{C}$\'])