Skip to content

Commit 85fb110

Browse files
fix(seaborn): address review feedback for scatter-basic
- Use 150 data points for consistency with matplotlib - Add white edge color and linewidth for better point visibility - Use dashed grid style for visual consistency - Increase marker size to s=60 Attempt 1/3 - fixes based on AI review
1 parent c9689d5 commit 85fb110

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

plots/scatter-basic/implementations/seaborn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
import seaborn as sns
99

1010

11-
# Data
11+
# Data - correlated data with noise
1212
np.random.seed(42)
13-
x = np.random.randn(100) * 2 + 10
14-
y = x * 0.8 + np.random.randn(100) * 2
13+
x = np.random.randn(150) * 2 + 10
14+
y = x * 0.8 + np.random.randn(150) * 1.5
1515

1616
# Create plot
1717
fig, ax = plt.subplots(figsize=(16, 9))
18-
sns.scatterplot(x=x, y=y, ax=ax, alpha=0.7, s=50, color="#306998")
18+
sns.scatterplot(x=x, y=y, ax=ax, alpha=0.7, s=60, color="#306998", edgecolor="white", linewidth=0.5)
1919

2020
# Labels and styling
2121
ax.set_xlabel("X Value", fontsize=20)
2222
ax.set_ylabel("Y Value", fontsize=20)
2323
ax.set_title("Basic Scatter Plot", fontsize=20)
24-
ax.tick_params(labelsize=16)
25-
ax.grid(True, alpha=0.3)
24+
ax.tick_params(axis="both", labelsize=16)
25+
ax.grid(True, alpha=0.3, linestyle="--")
2626

2727
plt.tight_layout()
2828
plt.savefig("plot.png", dpi=300, bbox_inches="tight")

0 commit comments

Comments
 (0)