Logo vun Python Origin Plotting

Python Origin Plotting

Communautéit
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.

Iwwersiicht

EditeurGerry2024-hub
RepositoryGerry2024-hub-python-origin-plotting-skill
Skill-Nummpython-origin-plotting
Stären
78
Forks
3
Matgeliwwert Fichieren
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum Gerry2024-hub op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Python Origin Plotting an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Gerry2024-hub/Gerry2024-hub-python-origin-plotting-skill/tree/main/skills/python-origin-plotting
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Python Origin Plotting an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Python Origin Plotting automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Python Origin Plotting net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Python Origin Plotting op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Python Origin Plotting besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Python Origin Plotting an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Gerry2024-hub/Gerry2024-hub-python-origin-plotting-skill/tree/main/skills/python-origin-plotting an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Python Origin Plotting benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Python Origin Plotting benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Python Origin Plotting domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Python Origin Plotting gratis?

Jo. De Skill gëtt vum Gerry2024-hub ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇