diff --git a/plots/scatter-basic/implementations/matplotlib.py b/plots/scatter-basic/implementations/matplotlib.py new file mode 100644 index 0000000000..a53423c55f --- /dev/null +++ b/plots/scatter-basic/implementations/matplotlib.py @@ -0,0 +1,27 @@ +""" +scatter-basic: Basic Scatter Plot +Library: matplotlib +""" + +import matplotlib.pyplot as plt +import numpy as np + + +# Data - correlated data with noise +np.random.seed(42) +x = np.random.randn(150) * 2 + 10 +y = x * 0.8 + np.random.randn(150) * 1.5 + +# Create plot +fig, ax = plt.subplots(figsize=(16, 9)) +ax.scatter(x, y, alpha=0.7, s=60, color="#306998", edgecolors="white", linewidths=0.5) + +# Labels and styling +ax.set_xlabel("X Value", fontsize=20) +ax.set_ylabel("Y Value", fontsize=20) +ax.set_title("Basic Scatter Plot", fontsize=20) +ax.tick_params(axis="both", labelsize=16) +ax.grid(True, alpha=0.3, linestyle="--") + +plt.tight_layout() +plt.savefig("plot.png", dpi=300, bbox_inches="tight") diff --git a/plots/scatter-basic/metadata/matplotlib.yaml b/plots/scatter-basic/metadata/matplotlib.yaml new file mode 100644 index 0000000000..bc627b8814 --- /dev/null +++ b/plots/scatter-basic/metadata/matplotlib.yaml @@ -0,0 +1,18 @@ +# Per-library metadata for matplotlib implementation of scatter-basic +# Auto-generated by impl-generate.yml + +library: matplotlib +specification_id: scatter-basic + +preview_url: https://storage.googleapis.com/pyplots-images/plots/scatter-basic/matplotlib/plot.png +preview_html: null + +current: + version: 0 + generated_at: 2025-12-11T22:54:42Z + generated_by: claude-opus-4-5-20251101 + workflow_run: 20150014768 + issue: 611 + quality_score: 92 + +history: []