From ef678783e27c3a1db64babe292594e868d24f6ae Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sun, 7 Dec 2025 10:34:58 +0000 Subject: [PATCH] feat(matplotlib): implement histogram-basic Implements basic histogram visualization using matplotlib's ax.hist() method. - Uses pandas DataFrame as per spec example - Follows Python Blue color from style guide (#306998) - Proper font sizes for 4800x2700 output (20pt labels, 16pt ticks) - Y-axis grid for readability --- plots/matplotlib/hist/histogram-basic/default.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plots/matplotlib/hist/histogram-basic/default.py b/plots/matplotlib/hist/histogram-basic/default.py index 7c59f56e73..ac2191c2ab 100644 --- a/plots/matplotlib/hist/histogram-basic/default.py +++ b/plots/matplotlib/hist/histogram-basic/default.py @@ -5,15 +5,16 @@ import matplotlib.pyplot as plt import numpy as np +import pandas as pd # Data np.random.seed(42) -values = np.random.normal(100, 15, 500) +data = pd.DataFrame({"value": np.random.normal(100, 15, 500)}) # Create plot fig, ax = plt.subplots(figsize=(16, 9)) -ax.hist(values, bins=30, alpha=0.8, color="#306998", edgecolor="white", linewidth=0.5) +ax.hist(data["value"], bins=30, alpha=0.8, color="#306998", edgecolor="white", linewidth=0.5) # Labels and styling ax.set_xlabel("Value", fontsize=20)