Created
January 25, 2024 13:53
-
-
Save romanmichaelpaolucci/069e3a7eb103496afb677f74afafe73e to your computer and use it in GitHub Desktop.
This file contains 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
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