Statistical Histogram
plot_histogramCreates a histogram from a list of numeric values to visualize data distribution. Customize bins and title for tailored analysis.
Instructions
Create statistical histograms (requires matplotlib).
Examples: plot_histogram([1.0, 2.0, 2.5, 3.0, 3.5, 4.0, 5.0]) plot_histogram([10, 20, 30, 40, 50], bins=5, title="Test Scores")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bins | No | Number of histogram bins, e.g., 20 | |
| data | Yes | List of numeric values to bin, e.g., [1.0, 2.0, 2.5, 3.0] | |
| title | No | Chart title string, e.g., 'Data Distribution' | Data Distribution |