scitex-gists
SigmaPlot macro printers — version-controlled VB-style macros emitted from Python.
Full Documentation · uv pip install scitex-gists[all]
Problem and Solution
| # |
Problem |
Solution |
| 1 |
SigmaPlot v12 macro files live outside version control — one lab machine has them, nobody else does |
Python prints the macro — sigmacro_process_figure_s() emits VB-style macro text; copy-paste into SigmaPlot editor; macros are now part of the repo |
Installation
pip install scitex-gists
Architecture
scitex_gists/
├── __init__.py
├── _SigMacro_processFigure_S.py ← prints figure-processing VB macro
├── _SigMacro_toBlue.py ← prints color-tweak VB macro
└── _skills/ ← agent-facing skill pages
A two-function library: each _SigMacro_*.py module wraps a
multi-line VB-style macro string and a print() helper. Adding a new
macro = add a new _SigMacro_<name>.py and re-export from
__init__.py.
1 Interfaces
Python API
from scitex_gists import sigmacro_process_figure_s, sigmacro_to_blue
sigmacro_process_figure_s()
sigmacro_to_blue()
Each function prints VB-style macro text to stdout. Pipe into your
clipboard or redirect to a file, then paste into the SigmaPlot macro
editor.
Demo
flowchart LR
A["python -c 'from scitex_gists import sigmacro_process_figure_s; sigmacro_process_figure_s()'"]
--> B["VB macro printed to stdout"]
B --> C["copy / pipe to clipboard"]
C --> D["paste into SigmaPlot v12<br/>macro editor"]
D --> E["run macro on figure"]
$ python -c "from scitex_gists import sigmacro_to_blue; sigmacro_to_blue()" | pbcopy
# now paste into the SigmaPlot macro editor and run
Quick Start
from scitex_gists import sigmacro_process_figure_s, sigmacro_to_blue
sigmacro_process_figure_s() # prints the figure-processing macro
sigmacro_to_blue() # prints the color macro
Part of SciTeX
scitex-gists is part of SciTeX. Install via
the umbrella with pip install scitex[gists] to use as
scitex.gists (Python) or scitex gists ... (CLI).
Four Freedoms for Research
- The freedom to run your research anywhere — your machine, your terms.
- The freedom to study how every step works — from raw data to final manuscript.
- The freedom to redistribute your workflows, not just your papers.
- The freedom to modify any module and share improvements with the community.
AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.
License
AGPL-3.0
评论