Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save romanmichaelpaolucci/069e3a7eb103496afb677f74afafe73e to your computer and use it in GitHub Desktop.
Save romanmichaelpaolucci/069e3a7eb103496afb677f74afafe73e to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
# Assuming df is your DataFrame and it has 'salary' and 'stock_return' columns
# df = pd.read_csv('your_data.csv') # Replace with your data source
# Creating the scatter plot
plt.figure(figsize=(10, 6))
plt.scatter(fr, np.log(stock_comp), color='blue', edgecolor='black', s=50)
# Enhancing the plot
plt.title('Large Cap Return v.s. Log Stock Award 2021', fontsize=15)
plt.xlabel('Firm Return', fontsize=12)
plt.ylabel('Log Stock Compensation', 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