AI Scientific Plotting Skill: Transforming CSV Data and Natural Language Requirements into Scientific Figures

Introduction

In mathematical modeling and scientific writing, figures often determine whether reviewers can quickly grasp the conclusions. A common practice is to let AI “draw plots based on descriptions” directly: the model writes matplotlib code, but whether the chart matches the data and if the layout resembles paper illustrations usually requires repeatedly tweaking prompts or manually adjusting code.

Below is an introduction to the AI Math Modeling Scientific Plotting Skill on SkillHub (Coordinate @user_147de1c0/modelviz-skill, referred to as ModelViz within the Skill). It breaks down “what plot to draw” and “how to draw it in a competition/paper style” into an executable workflow: first, understand the requirements and data; then select a model from the built-in template catalog; and finally, adapt the data, execute the plotting, and perform quality checks without modifying the original templates.

What is this

The AI Math Modeling Scientific Plotting Skill is an Agent Skill designed for mathematical modeling and scientific visualization. It is version 1.0.0, sourced from the SkillHub community, categorized under data-analysis, and published by user_147de1c0. The page marks requires_api_key=false, meaning installing this Skill does not mandate an API Key configuration (though specific plotting still relies on the Agent environment and Python dependencies).

The official English introduction positions it as: A scientific visualization workflow for mathematical modeling competitions—given user-owned CSV / XLSX / XLS files and natural language plotting requirements, it selects from an existing template catalog, copies and adapts Python templates (without modifying the originals), executes the plotting, and checks the results technically and visually, fixing obvious issues if necessary.

SkillHub page statistics (based on crawled data): Rating 100000, Downloads 6668.

Core Functions

The following capabilities are derived from the official SkillHub page description and should be understood in execution order.

Requirement and Data Understanding

The Skill does not default to “drawing immediately upon receiving a command.” Instead, it first analyzes:

  1. Whether the user wants to express trends, comparisons, distributions, or correlations;
  2. What fields exist in the data and the potential relationships between them;
  3. Whether the chart type specified by the user is suitable for the current data;
  4. Whether a complex chart might obscure key points;
  5. Which presentation aligns better with the clear, standardized, and low-saturation styles common in mathematical modeling competitions and scientific papers.

Template Retrieval and Scenario Coverage

After completing the analysis of requirements and data, it retrieves candidates from hundreds of built-in scientific plotting templates and supporting assets, then makes a final selection based on the real data. The scenarios listed officially include:

  1. Time series and trend analysis;
  2. Categorical and numerical comparison;
  3. Correlation and regression analysis;
  4. Distribution, uncertainty, and outlier analysis;
  5. Clustering, dimensionality reduction, and comprehensive evaluation;
  6. Sensitivity analysis and prediction evaluation;
  7. Network relationships and spatial analysis;
  8. Heatmaps, matrix plots, and multi-subplot combinations.

Adaptation, Execution, and Output

After selecting a template, the Skill proceeds to:

  1. Adapt the template to the user’s real data, preserving the original template’s layout, color scheme, and scientific style as much as possible;
  2. Automatically check for required Python libraries and install missing dependencies on demand (no need to pre-install all plotting libraries);
  3. Output PNG, SVG, PDF, and reproducible Python code;
  4. Check for issues such as blank plots, font anomalies, overlapping labels, and legend obstruction. If problems are found, it modifies the code and regenerates the plot.

The overall automation pipeline is summarized in the official description as: Understand requirements → Retrieve candidate templates → Analyze data and select template → Check runtime dependencies → Adapt real data → Generate scientific style charts → Check for issues and auto-fix.

Installation and Activation

This Skill is based on the universal SKILL.md format. The installation guidance provided on the SkillHub page is: Ask the AI to install the coordinate @user_147de1c0/modelviz-skill based on the official installation documentation.

Install SkillHub CLI (If not already installed)

First, check if skillhub exists on your machine:

command -v skillhub && skillhub --version

If not installed, you can follow the SkillHub Installation Documentation to perform a complete installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Install the ModelViz Skill

When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. Common paths documented include:

Environment Skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

The installation command takes the following form (replace <skills directory> with the actual path of your current client):

skillhub install user_147de1c0/modelviz-skill --dir <skills directory>

You can also state directly in the conversation: Please install @user_147de1c0/modelviz-skill according to https://skillhub.cn/install/skillhub.md.

After installation, refresh or restart according to the conventions of the Agent you are using to ensure the new Skill is loaded. Differences between Cursor / Codex CLI / Claude Code mainly lie in the skills directory location; the installation documentation does not list separate activation switches for different clients, so unverified details are not expanded upon here.

Typical Usage

The official emphasis is that user input consists of only two types: Data Files and Natural Language Plotting Requirements. Supported data formats include CSV, XLSX, XLS.

Example of a reproducible conversation method:

  1. Place the data file in a path accessible to the Agent and explain the meaning of the fields (if column names are not intuitive, it is recommended to add a sentence or two);
  2. Use natural language to explain the conclusion you want to express, such as trends, inter-group comparisons, correlations, or distributions, rather than just writing “draw a nice picture”;
  3. If there are existing preferences (subplot layout, low-saturation color scheme preference, output format), specify them as well;
  4. Ask the Agent to execute under the premise of this Skill being enabled: Select model → Adapt template → Run Python → Output PNG/SVG/PDF and code;
  5. If the generated result has blanks, overlaps, or legend obstructions, you can request the Skill to modify the code and rerun based on its self-check logic.

Example Prompt (replace with your actual path and requirements):

I have enabled @user_147de1c0/modelviz-skill. The data is in ./data/result.csv, containing columns year, region, and value.
Please select an appropriate template based on mathematical modeling paper conventions to draw a regional comparison trend chart, outputting PNG and reproducible Python code;
If labels overlap or the legend is obstructed, please fix it automatically and regenerate.

Applicable Scenarios and Notes

Who is it for

  • Teams participating in mathematical modeling competitions who need many illustrations and desire a unified style;
  • Researchers writing course papers or reports with table data who want to avoid writing boilerplate matplotlib code;
  • Users already doing data analysis in environments supporting Skills like Cursor, Claude Code, or Codex.

Usage Notes

  1. Template selection depends on data and description quality: If column names are messy or the requirement is just “draw a picture,” the model may still select a sub-optimal chart type; try to explain “what you want to prove.”
  2. Dependencies installed on demand: The Skill checks and completes the libraries required by the template, but the execution environment must allow Python package installation; offline or restricted environments may fail.
  3. Original templates are not modified: Adaptation is performed on copies, which is conducive to reproducibility and comparison. However, if your requirements differ significantly from the templates in the catalog, you may still need to change data granularity or descriptions.
  4. Auto-fix targets “obvious issues”: Blank plots, fonts, overlaps, and legend obstructions are within the scope of the description; aesthetic subjectivity or statistical errors still require human judgment.
  5. Statistical figures are based on crawled data: If you see different download counts or ratings on SkillHub than in this article, please refer to the real-time page data.

Conclusion

The AI Math Modeling Scientific Plotting Skill (ModelViz) brings the question of “whether the chart type is appropriate and the layout is standardized” forward into the workflow for mathematical modeling and scientific scenarios. It uses a template catalog plus adaptive execution rather than single-use generation of disposable plotting code. If you already have CSV/XLSX/XLS files and can clearly state the conclusions you want to express in conversation, you can mount it as a fixed plotting workflow on your Agent.

Official SkillHub Page: https://www.skillhub.cn/skills/user_147de1c0/modelviz-skill
API Entry: https://api.skillhub.cn/user_147de1c0/modelviz-skill

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye