axis
Configure axes — op="labels"/"range"/"scale"/"tick"/"frame"; op="labels" also sets the right/top-axis title on axis="right"/"top"
How to use it
axis is exposed by the Origin Pro MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the axis tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Origin Pro MCP
pip install origin-pro-mcpOther tools in Origin Pro MCP (39)
Add a panel/axis layer (right-y, top-x, inset, independent)
Add another dataset to an existing graph
Add a right-Y layer and plot on it
Add an annotation — kind="referenceline"/"text"/"line"/"arrow"
One-call publication formatting (recommended)
Apply a palette and/or set the Z color-scale range on a colormapped graph
Create graph (scatter, line, line+symbol, column, bar, area, pie, histogram, box, contour, 3dscatter); optional template= builds it from a saved .otpu/.otp (2D XY types only)
Create a matrix book
Surface (3D), contour, heatmap, or image from a matrix (with a data-linked color scale)
Create new workbook
Curve fitting: parameters ± std errors, R², SSR, reduced χ²; optional plotongraph, xmin/xmax to restrict the fit range, and peaks=N (gauss/lorentz/voigt) for multi-peak deconvolution
Delete a graph window
Export every graph in the project to image files
Export to an image file — raster (png/jpg/tif/bmp) or vector (pdf/eps/emf, resolution-independent); width= sets an exact pixel width for raster (default ~1200px wide, height follows the graph's aspect ratio)
Export a worksheet to CSV/text
Read worksheet data as JSON (empty cells → null)
Import a CSV/text or Excel file (format="auto"/"csv"/"excel"); CSV/text import suppresses Origin's auto-generated sparkline mini-graph windows by default (sparklines=False). filepath may also be a directory or glob to batch-import every matching file, each into its own book
Show available fit functions
List open workbooks, graphs, and matrices
Open existing .opj/.opju file
Add, delete, or edit columns — op="add"/"delete"/"properties"/"formula"
Create new empty Origin project
Remove one data plot from a graph, addressed by index (COM DataPlot.Destroy()) — removes only that plot even if the same dataset is plotted more than once
Execute LabTalk with destructive/file-writing commands blocked; optional capture reads variables back. If a 2+ statement script fails as a whole, it is automatically retried statement-by-statement and each statement's OK/FAILED status is reported (partial application is possible — this is intentiona
Save a graph as a reusable .otpu/.otp template
Save project to .opju file
Attach Y/X error bars to an existing plot from an error column (no duplicate)
Set font family, size, and optional bold
Set a layer's panel position/size (left/top/width/height)
Configure legend text and position
Set color, line width, symbol shape/size, and open/solid marker
Tick-label numeric format (decimal/scientific/engineering), bold, decimal places, axis→label offset (offsetpct, % of font; +toward axis)
Write column data (JSON arrays)
Sort rows by a column (asc/desc)
Statistics on worksheet columns — op="column"/"comparemeans"/"frequency"
Numerical transform on an XY curve — method="integrate"/"differentiate"/"smooth"/"interpolate"/"fft"/"findpeaks"; smooth takes smoothmethod="savitzkygolay"/"adjacent"/"binomial"
Transpose rows and columns
Break a plot group so each curve can be colored independently
Grid scattered XYZ into a matrix (xyz2mat)