GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jsbangsund/python_to_originlab: Python tools to convert matplotlib figures to OriginLab graphs, to send data to Origin, and perform basic plotting functions in Origin.

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
Documentation
Documentation
 
 
OriginTemplates
OriginTemplates
 
 
.gitignore
.gitignore
 
 
Communicating with origin examples.ipynb
Communicating with origin examples.ipynb
 
 
LICENSE
LICENSE
 
 
Matplotlib_to_OriginLab_Examples.ipynb
Matplotlib_to_OriginLab_Examples.ipynb
 
 
Numpy_to_Originlab_example.ipynb
Numpy_to_Originlab_example.ipynb
 
 
README.md
README.md
 
 
example.png
example.png
 
 
py2origin.py
py2origin.py
 
 

Repository files navigation

python_to_originlab

Overview

Functions in python to automate sending data and basic plotting functions in OriginLab. The function matplotlib_to_origin can convert matplotlib figures directly to origin graphs.

The function matplotlib_to_origin will try it's best to convert a matplotlib figure to an origin graph, extracting data and line properties from the figure and axis handles. It's by no means perfect, but allows for data to quickly be transferred from the python environment to OriginLab for further tweaking and sharing (with, e.g., advisors who demand you use Origin). Example Origin Plot

Dependencies

OriginLab must be installed, and must have the win32com python package (https://anaconda.org/anaconda/pywin32). OriginExt is also used, and can be installed with: pip install originext

Other notes

Origin color increment lists (.oth files) follow the color series in https://jiffyclub.github.io/palettable/, and can be found in the folder "\OriginTemplates\Themes\Graph".

There are a number of small syntax differences between versions. I have tested this code on OriginLab 2016 and 2018, but don't know about compatibility outside of those versions.

OriginLab's default directory for user templates is (with appropriate version year selected): C:\Users\username\Documents\OriginLab\2016\User Files

Documentation

OriginLab has fairly spotty documentation, but the two main documentation sources are for the Automation Server, and for LabTalk commands. LabTalk seems to be a much older and more thoroughly developed/documented language, so more complicated and specific commands can be achieved with this.

  • Automation Server Docs
  • LabTalk Docs

Other Resources

  • https://github.com/swharden/PyOriginTools
  • OriginExt Package

About

Python tools to convert matplotlib figures to OriginLab graphs, to send data to Origin, and perform basic plotting functions in Origin.

Resources

Readme
MIT license
Activity

Stars

43 stars

Watchers

2 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.