plot_scatter
Create an x-y scatter plot annotated with Pearson r and sample size. Handles missing values via pairwise deletion and reports counts from file or inline data.
Instructions
plot_scatter —— 可视化组 · 散点图(工具 21,核心实现)。
生成 x-y 散点图,图上标注 Pearson r 与样本量;缺失按成对剔除并报数。 图协议走 _common.save_plot(附录 D);返回顶层 image 绝对路径。 inline 数据: 本工具支持可选 inline_data 参数(v1.2.0 起):与 file_path 二选一, 支持 records 数组或 {"header": [...], "rows": [[...], ...]} 对象两种形态; 规模上限/类型域/data_source 来源标注见 statlab_mcp/docs/SPEC.md 第 12 节。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x_col | No | ||
| y_col | No | ||
| file_path | No | ||
| inline_data | No |