Skip to content

Instantly share code, notes, and snippets.

@romanmichaelpaolucci
Created January 23, 2024 17:38
Show Gist options
  • Save romanmichaelpaolucci/5b9bc7e57610919b193b2e77d931105e to your computer and use it in GitHub Desktop.
Save romanmichaelpaolucci/5b9bc7e57610919b193b2e77d931105e to your computer and use it in GitHub Desktop.
plt.figure(figsize=(10, 6))
plt.hist(get_exec_comp("TSLA").drop_duplicates('nameAndPosition')['total']/1000000, bins=30, color='skyblue', edgecolor='black')
# Enhancing the plot
plt.title('TSLA Salary Distribution (millions)', fontsize=15)
plt.xlabel('Salary', fontsize=12)
plt.ylabel('Frequency', fontsize=12)
plt.grid(True, linestyle='--', alpha=0.7)
plt.tight_layout()
# Show the plot
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment