Skip to content

Instantly share code, notes, and snippets.

@techwithshadab
Created November 3, 2021 21:07
Show Gist options
  • Save techwithshadab/8710787f91d0f4dc02f139634903f872 to your computer and use it in GitHub Desktop.
Save techwithshadab/8710787f91d0f4dc02f139634903f872 to your computer and use it in GitHub Desktop.
f, ax = plt.subplots(figsize=(20, 8))
optimized_value = sns.barplot(state, probabilities)
for item in optimized_value.get_xticklabels():
item.set_rotation(45)
plt.title("Probabilites of Each Possible Combination of Assets", fontsize=25) # Probability of Max Return at given risk level
plt.xlabel('Possible Combinations of Assets',fontsize =20)
plt.ylabel('Probability',fontsize = 20)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment