شعار Python Origin Plotting

Python Origin Plotting

المجتمع
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.

نظرة عامة

الناشرGerry2024-hub
المستودعGerry2024-hub-python-origin-plotting-skill
اسم المهارةpython-origin-plotting
النجوم
78
التفريعات
3
الملفات المرفقة
4
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 4

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها Gerry2024-hub على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Python Origin Plotting في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Gerry2024-hub/Gerry2024-hub-python-origin-plotting-skill/tree/main/skills/python-origin-plotting
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Python Origin Plotting في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Python Origin Plotting تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Python Origin Plotting بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Python Origin Plotting على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Python Origin Plotting عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Python Origin Plotting في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/Gerry2024-hub/Gerry2024-hub-python-origin-plotting-skill/tree/main/skills/python-origin-plotting. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Python Origin Plotting؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Python Origin Plotting؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Python Origin Plotting معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Python Origin Plotting مجانية؟

نعم. نشرها Gerry2024-hub على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇