Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created May 3, 2021 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasaarholt/d6ce1696cac13cae31243e1a5488a91b to your computer and use it in GitHub Desktop.
Save thomasaarholt/d6ce1696cac13cae31243e1a5488a91b to your computer and use it in GitHub Desktop.
x_ = np.linspace(0, 12, 1000)
die_y = die_fit_func(x_, *guess)
fig, ax = plt.subplots()
ax.plot(x_, die_y.real)
ax2 = ax.twinx()
ax2.plot(x_, die_y.imag, color='red')
ax.set(xlabel='Energy', ylabel='Real')
ax2.set(ylabel='Imaginary')
ax.yaxis.label.set_color('tab:blue')
ax2.yaxis.label.set_color('red')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment