| import matplotlib.pyplot as plt |
| |
|
|
| |
| plt.style.use('seaborn-v0_8') |
| plt.rcParams['font.family'] = 'Arial' |
| plt.rcParams['font.size'] = 14 |
| plt.rcParams['axes.linewidth'] = 1.2 |
| plt.rcParams['lines.linewidth'] = 2 |
| plt.rcParams['legend.fontsize'] = 12 |
| plt.rcParams['xtick.labelsize'] = 12 |
| plt.rcParams['ytick.labelsize'] = 12 |
|
|
| |
| K = [2, 4, 6, 8, 12] |
| L = [3.21, 3.89, 4.57, 4.96, 5.38] |
| SR = [2.73, 3.01, 3.44, 3.30, 2.89] |
|
|
| |
| plt.figure(figsize=(8, 6)) |
| plt.scatter(K, L, color='#1f77b4', s=100, alpha=0.8, edgecolors='w') |
| plt.plot(K, L, color='#1f77b4', linestyle='--', alpha=0.6) |
| plt.xlabel('K', fontsize=16, weight='bold') |
| plt.ylabel(r'$\tau$', fontsize=16, weight='bold') |
| |
| plt.grid(True, linestyle='--', alpha=0.7) |
| plt.legend() |
| plt.tight_layout() |
| plt.savefig('K_vs_L.png', dpi=600, bbox_inches='tight') |
| |
|
|
| |
| plt.figure(figsize=(8, 6)) |
| plt.scatter(K, SR, color='#ff7f0e', s=100, alpha=0.8, edgecolors='w') |
| plt.plot(K, SR, color='#ff7f0e', linestyle='--', alpha=0.6) |
| plt.xlabel('K', fontsize=16, weight='bold') |
| plt.ylabel('SR', fontsize=16, weight='bold') |
| |
| plt.grid(True, linestyle='--', alpha=0.7) |
| plt.legend() |
| plt.tight_layout() |
| plt.savefig('K_vs_SR.png', dpi=600, bbox_inches='tight') |
| |