Skip to main content

OriginPro Utilities

Project description

originpro

This package contains a high-level API for interacting with the Origin software via the Origin Automation Server COM interface. Functionality includes (but is not limited to) reading, writing, and modifying data and creating and exporting graphs. An instance of Origin is launched (either visible or hidden) when using this package.

Installation

This package is Windows only and requires a local installation of Origin 2021 or later.

To install the package, run:

pip install originpro

As part of the installation, the OriginExt package will also be installed.

Documentation

Documentation and examples are available in the OriginLab External Python Documentation.

Support

Support is available on the Origin Forum for Python.

Simple Example

import os
import originpro as op

op.set_show()

x_vals = [1,2,3,4,5,6,7,8,9,10]
y_vals = [23,45,78,133,178,199,234,278,341,400]

wks = op.new_sheet('w')

wks.from_list(0, x_vals, 'X Values')
wks.from_list(1, y_vals, 'Y Values')

gp = op.new_graph()
gl = gp[0]
gl.add_plot(wks, 1, 0)
gl.rescale()

fpath = op.path('u') + 'simple.png'
gp.save_fig(fpath)
print(f'{gl} is exported as {fpath}')

op.exit()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

originpro-1.1.11-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

Details for the file originpro-1.1.11-py3-none-any.whl.

File metadata

  • Download URL: originpro-1.1.11-py3-none-any.whl
  • Upload date:
  • Size: 55.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for originpro-1.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 293a9714273768a80da385f48422c146a795c0174cbc8b51566d4ad1935c46a8
MD5 e0ad9bc8b7dfb2d3cb5059f540a7fd46
BLAKE2b-256 6b50eaffa367fde1aacd934206a6499415b254cbef02e9d9096d4d46ff133259

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page