Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JIRA

SUMMARY

DETAILS

ORG-22062, ORG-21995, ORG-22031, ORG-22107

Introduce originpro module

get/set between pandas DataFrame and Origin worksheet, matrix, graph etc.

https://www.originlab.com/python/doc/originpro/annotated.html

Code Block
import pandas as pd
import originpro as op
wks=op.find_wsheet()
df = wks.to_df()

wks = op.new_wsheet( 'Test Category' )
wks.from_df( df )

ORG-20980

Update preshipped Python version

upgrade Python to 3.8.3

ORG-21988, ORG-11812

menu access

  1. Under menu Connectivity add new menu Python IDE in Code Builder.

  2. In Code Builder, add menu Python Packages under Tools.

  3. Start Debug button on toolbar (F5) to run Python file.

ORG-22024

Wrap text in Python Console

Allow auto wrapping for dir command’s output in Python Console.

ORG-22046

Add return value for some Python Object

method like GetNumProp, SetNumProp, DoMethod etc. now has return value.

ORG-22075

Remove Python 2 from installation

Stop supporting Python 2.

ORG-21993

Support Python PIP command

All pip commands are supported in LabTalk now.

For example, you can use following command to install numpy package directly.

Code Block
pip install numpy;

ORG-22049

Install Packages from Code Builder Py Editor Tools menu

Add Python Packages tool to install/uninstall internal python packages.

In Code Builder, select Tools: Python Packages…

ORG-22070

OC to call Python functions

OC supports calling Python functions. By default the py file should be placed in the same folder as the c/cpp or XF file, and the name of the py file has to be origin.py.
To change that, you need to

  1. to change working directory

Code Block
Python.OCWD$;//OC Working Directory

2. to change file name(independent of 1)

Code Block
Python.OCWF$;//OC Working Filename

OC

ORG-21941

code to download color palette from the internet

Added following OC function to download color palette. If file name arg is NULL or empty then the downloaded palette is installed.

int download_palette(LPCSTR lpcszURL, LPCSTR lpcszPALfilename)

At this time it can convert the following:

  • Scribus (.xml) (XML)

  • Office Color Table (.soc) (XML)

  • CorelDraw and Corel PhotoPaint (.xml) (XML)

  • Adobe Color (.aco) (Binary)

  • Adobe Color Table (.act) (Binary)

  • Adobe Swatch Exchange (.ase) (binary)

  • JASC PaintShopPro (.pal) (Text)

...