Skip to content

Instantly share code, notes, and snippets.

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 mjam03/d1cd6dbd0fe961efdde5b7f487d395dc to your computer and use it in GitHub Desktop.
Save mjam03/d1cd6dbd0fe961efdde5b7f487d395dc to your computer and use it in GitHub Desktop.
fat_tails_and_their_impact_on_option_prices4
# plot them
fig, ax = plt.subplots(figsize=(25,10))
for e, op_px in op_pxs.items():
if e != 0:
ax.plot(ks, [x/y for x,y in zip(op_px, op_pxs[0])], label="e = {}".format(e))
ax.set_title("Percentage Chg Time Value for Various Option Strikes", fontsize=24)
ax.set_xlabel("Option Strike, K", fontsize=20)
ax.set_ylabel("% Change Time Value", fontsize=20)
ax.set_yticklabels(['{:,.0%}'.format(x) for x in ax.get_yticks()], fontsize=14)
ax.legend(fontsize=14);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment