Python Origin Plotting logo

Python Origin Plotting

Community
Gerry2024-hub
python-origin-plotting

Automate OriginPro figure generation from Excel or CSV data through Python originpro. Use when an agent needs to create, reproduce, or refine Origin/OriginPro .opju projects, publication PNG/TIFF exports, worksheet import pipelines, grouped bar charts, dual-axis charts, scatter/line plots, or chart styling scripts using Python-driven Origin automation.

Overview

PublisherGerry2024-hub
RepositoryGerry2024-hub-python-origin-plotting-skill
Skill namepython-origin-plotting
Stars
78
Forks
3
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Gerry2024-hub on GitHub. Read the source before you install it.

Installation

Install the Python Origin Plotting AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Gerry2024-hub/Gerry2024-hub-python-origin-plotting-skill/tree/main/skills/python-origin-plotting
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Gerry2024-hub/Gerry2024-hub-python-origin-plotting-skill.git /tmp/Gerry2024-hub-python-origin-plotting-skill
mkdir -p .claude/skills
cp -r /tmp/Gerry2024-hub-python-origin-plotting-skill/skills/python-origin-plotting .claude/skills/python-origin-plotting
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Python Origin Plotting in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Python Origin Plotting on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Python Origin Plotting is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Python Origin Plotting

Use this skill to turn tabular data and plotting requirements into reproducible OriginPro projects driven by Python originpro.

Prerequisites

  • Windows with OriginPro installed and licensed.
  • Python that can import originpro and pandas.
  • Input data supplied by the user as Excel or CSV.
  • No API keys or secret environment variables are required.

Security Notes

  • Inspect scripts/originpro_plot_template.py before running it in a new environment.
  • Do not commit or publish user data files, generated figures, audit CSV files, or .opju projects.
  • Keep script outputs inside the user-selected project/output folder and an explicit temp folder such as E:/origin_tmp.
  • Do not download remote code or send user data to network services as part of this skill.

First Pass

  1. Locate existing artifacts before writing code:
    • *origin*.py, *.opju, *.opj, plots_origin/, exported Origin_*.png
    • PowerShell: Get-ChildItem -Recurse -File -Include *origin*.py,*.opju,*.opj,*.png
  2. Identify the input file, sheet name, required columns, desired chart types, output folder, and whether Origin should be visible.
  3. Reuse any existing project script style first, especially workbook setup, LabTalk styling, export naming, and temp-path handling.
  4. For a new project, copy and adapt scripts/originpro_plot_template.py.

Standard Workflow

  1. Load and clean data with pandas.

    • Read Excel or CSV.
    • Drop rows missing required plotting columns.
    • Sort data in the expected visual order.
    • Create short axis labels while preserving long labels in separate worksheet columns.
    • Export an audit CSV such as origin_input_data_sorted.csv with encoding="utf-8-sig".
  2. Start a clean Origin project.

    • import originpro as op
    • op.set_show(True) when the user should see Origin.
    • op.new() before creating new workbooks and graph pages.
    • Create a workbook with op.new_book(...), write the DataFrame with wks.from_df(df), then set column designations and labels.
  3. Create graphs in Origin.

    • Use Origin graph pages and layers rather than matplotlib when the user asks for Origin output.
    • Add plots with gl.add_plot(wks, coly=..., colx=..., type=...).
    • For dual-axis charts, add a second layer and explicitly manage right-Y axis titles and limits.
  4. Style through Origin APIs and LabTalk.

    • Set axis titles with gl.axis("x").title and gl.axis("y").title.
    • Use gl.lt_exec(...) or gp.lt_exec(...) for labels, legends, grids, tick rotation, and template-specific styling.
    • Call gl.rescale() after adding plots.
    • Avoid graph titles when they overlap exports; prefer page long names and filenames.
  5. Export figures and save the Origin project.

    • Export PNG/TIFF with gp.save_fig(...).
    • Save .opju with op.save(...).
    • If output paths contain Chinese characters or Origin refuses direct export, save first to an ASCII temp directory, then copy to the final path.
    • Use timestamped or versioned .opju names if the final project file may be locked.
  6. Close Origin cleanly.

    • Put save/export logic in try.
    • Put op.exit() in finally.
    • Do not leave hidden Origin COM sessions running.

References

Read these only when needed:

  • references/originpro-workflow.md: detailed implementation patterns, chart recipes, and script structure.
  • references/troubleshooting.md: common originpro, COM, Chinese-path, export, and locked-file failures.

Validation Checklist

  • The script runs without Python exceptions on the target machine.
  • Output folder contains an audit CSV, exported figure files, and a saved .opju.
  • Figure files are non-empty and have recent modification times.
  • The .opju opens in Origin and contains the worksheet plus graph pages.
  • If Origin or originpro is not installed, say so clearly and do not fake Origin output with matplotlib unless the user asks for a fallback.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Python Origin Plotting AI skill do?

Automate OriginPro figure generation from Excel or CSV data through Python originpro. Use when an agent needs to create, reproduce, or refine Origin/OriginPro .opju projects, publication PNG/TIFF exports, worksheet import pipelines, grouped bar charts, dual-axis charts, scatter/line plots, or chart styling scripts using Python-driven Origin automation.

Why use Python Origin Plotting on TypingMind?

Because you install it once and use it with any model. Python Origin Plotting is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Python Origin Plotting in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Gerry2024-hub/Gerry2024-hub-python-origin-plotting-skill/tree/main/skills/python-origin-plotting. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Python Origin Plotting?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Python Origin Plotting?

As many as you like. As long as a model supports skills, you can use Python Origin Plotting with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Python Origin Plotting AI skill free?

Yes. It is published on GitHub by Gerry2024-hub under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇