Created
May 3, 2021 16:13
-
-
Save thomasaarholt/d6ce1696cac13cae31243e1a5488a91b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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