...
-Top Features
...
Feature
...
How to
...
Python improvements
-Top Features
Feature | How to |
---|---|
Python improvements | We have introduced a new originpro package for easy access to Origin from Python. This package works on a higher level, providing easy access to workbooks, matrices and graphs with very little code. The package also provides higher level access to data frames and numpy arrays. Several sample Origin projects have been added under \Samples\Python sub folder. These samples have Python code attached as .py files in the project. View documentation including detailed reference for the orignipro package. Improvements in Beta2:
|
Excel like formula bar |
|
Mini toolbar Improvements | Mini toolbars for text label, legend, color scale, bubble scale, and graphic objects are improved. Improvements in Beta2: Mini toolbar for tick label table (In Progress) Mini toolbar button to flip colormap Mini toolbar for Parallel Plot Axis System Variable for increment steps on Mini toolbar |
Color Palette Improvements | Drag and drop palette types from other popular software. |
...
JIRA | SUMMARY | DETAILS |
---|---|---|
Improvement mini toolbar for legend – Inprogress |
| |
Rotate line, arrow, rectangle, etc. graphic objects with specified angle |
| |
ORG-22020 | Applying Formatting to button for data label mini toolbar | Support Apply Formatting to This Layer/Window for data label |
ORG-21885 | Support Different Label Source for Each Plot of Grouped 3D plot | Implemented in Origin 2021. |
Tick Label Alignment support | ||
Mini toolbar for Tick Label Table (In Progress) - Beta2 | ||
Mini toolbar button to flip colormap – Beta2 | ||
Mini toolbar for Parallel Plot Axis – Beta2 | ||
System Variable for increment steps on Mini toolbar |
...
JIRA | SUMMARY | DETAILS | ||
---|---|---|---|---|
Excel like pi product function |
E.g. column A is filled with 2, 3, 4, 5 In B1 cell, enter = product(A) will 120, which is 2*3*4*5. | |||
Excel like LET function | Easier to write complex formulas, by making it possible to declare and assign values to variables inside a formula
exp1 is resolved and assigned to name1, exp2 is resolved and assigned to name2, then assign names to calculation for result.
| |||
Command Window | support mouse wheel zoom, more support on auto complete | |||
Introduce new LabTalk command to update pending locks |
| |||
LabTalk Access to Dash Definition at Plot Level | Syntax: set name -ldf value
| |||
GetN supports dataset elements | E.g. dataset values; | |||
ORG-22214 | LT Labtalk control of Box Plots – Beta2 |
|
Python
...
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 ) |
...
...
Update preshipped Python version
...
upgrade Python to 3.8.3
...
...
menu access
...
Under menu Connectivity add new menu Python IDE in Code Builder.
In Code Builder, add menu Python Packages under Tools.
Start Debug button on toolbar (F5) to run Python file.
...
...
Wrap text in Python Console
...
Allow auto wrapping for dir command’s output in Python Console.
...
...
Add return value for some Python Object
...
method like GetNumProp, SetNumProp, DoMethod etc. now has return value.
...
...
Remove Python 2 from installation
...
Stop supporting Python 2.
...
...
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; |
...
...
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…
...
...
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
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 |
...
...
Beta Tester Feedbacks -- show Python print immediately
Added a system variable @PYO to control if show Python print immediately for Embedded Python.
Code Block |
---|
@PYO=1(default):immediate output
@PYO=0:output at the end |
For example:
Code Block |
---|
import PyOrigin as po
print('before')
po.LT_execute('typ hi')
print('after') |
if @PYO=1
, will output as
Code Block |
---|
before
hi
after |
if @PYO=0
, will output as
Code Block |
---|
hi
before
after |
OC
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.
At this time it can convert the following:
|
---|
Code Builder
Code Builder Shortcut Key Need VS like Ctrl+K Ctrl+C support | Update some Code Builder Shortcut Keys:
| |
---|---|---|
Support debug Python file | Support debug Python file in Code Builder |
General
JIRA | SUMMARY | DETAILS |
---|---|---|
Range String Builder dialog updates | Clearer labels and contexts, update menu entry name as Custom... | |
Main Menu Rework |
|
Analysis
JIRA | SUMMARY | DETAILS |
---|---|---|
Moving Average Functions NANUM (Missing value) Ignore or Zero Issues | Support different ways to treat missing value in the following functions: movavg, tmovavg and movcoef. New option “missing“ is introduced:
| |
Improvement on Operation Lock tooltip |
| |
Average Multiple Curves with Different X Ranges Issue | Adding new option “No Extrapolation”:
| |
Support set sampling interval on locked columns | Allow set sampling interval on locked column now. | |
ORG-21964 | Peak Analyzer default theme setting changes | 2 choices Enable Linear Constraints Status and Constraints change to check by default |
GCAS function has no "abs" | “abs“ in the GCAS function is not necessary and so it’s removed now. |
Worksheet
JIRA | SUMMARY | DETAILS |
---|---|---|
Data Formatting Mini Toolbar for Worksheet | Add new mini toolbars for easily customize the number of digits, date, and time format. | |
Redo wTranspose XF tool | In the past, output of wtranspose maybe problematic when directly use as anlaysis input. Now, this should not be a problem anymore. |
Statistics
...
JIRA
...
SUMMARY
...
DETAILS
...
...
Statistics on Rows support multiple sheets as input
...
Origin 2021 implemented it.
Matrix
JIRA | SUMMARY | DETAILS | |
---|---|---|---|
More Shapes added to extract data from Matrix – Beta2 | In Image mode of matrix (View: Image Mode), user can use rectangle, circle, polygon, region tool to define region of interest and extract the data there.
| ||
GetN supports dataset elements | E.g. dataset values; | ||
ORG-22214 | LT Labtalk control of Box Plots – Beta2 |
|
Python
JIRA | SUMMARY | DETAILS | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Introduce originpro module get/set between pandas DataFrame and Origin worksheet, matrix, graph etc. | https://www.originlab.com/python/doc/originpro/annotated.html
| |||||||||
Update preshipped Python version | upgrade Python to 3.8.3 | |||||||||
menu access |
| |||||||||
Wrap text in Python Console | Allow auto wrapping for dir command’s output in Python Console. | |||||||||
Add return value for some Python Object | method like GetNumProp, SetNumProp, DoMethod etc. now has return value. | |||||||||
Remove Python 2 from installation | Stop supporting Python 2. | |||||||||
Support Python PIP command | All pip commands are supported in LabTalk now. For example, you can use following command to install numpy package directly.
| |||||||||
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… | |||||||||
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.
2. to change file name(independent of 1)
| |||||||||
Beta Tester Feedbacks -- show Python print immediately | Added a system variable @PYO to control if show Python print immediately for Embedded Python.
For example:
if
if
|
OC
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.
At this time it can convert the following:
|
---|
Code Builder
Code Builder Shortcut Key Need VS like Ctrl+K Ctrl+C support | Update some Code Builder Shortcut Keys:
| |
---|---|---|
Support debug Python file | Support debug Python file in Code Builder |
General
JIRA | SUMMARY | DETAILS |
---|---|---|
Range String Builder dialog updates | Clearer labels and contexts, update menu entry name as Custom... | |
Main Menu Rework | Improvements in Beta2:
|
Analysis
JIRA | SUMMARY | DETAILS |
---|---|---|
Moving Average Functions NANUM (Missing value) Ignore or Zero Issues | Support different ways to treat missing value in the following functions: movavg, tmovavg and movcoef. New option “missing“ is introduced:
| |
Improvement on Operation Lock tooltip |
| |
Average Multiple Curves with Different X Ranges Issue | Adding new option “No Extrapolation”:
| |
Support set sampling interval on locked columns | Allow set sampling interval on locked column now. | |
ORG-21964 | Peak Analyzer default theme setting changes | 2 choices Enable Linear Constraints Status and Constraints change to check by default |
GCAS function has no "abs" | “abs“ in the GCAS function is not necessary and so it’s removed now. - Beta2: |
Worksheet
JIRA | SUMMARY | DETAILS |
---|---|---|
Data Formatting Mini Toolbar for Worksheet | Add new mini toolbars for easily customize the number of digits, date, and time format. | |
Redo wTranspose XF tool | In the past, output of wtranspose maybe problematic when directly use as anlaysis input. Now, this should not be a problem anymore. |
Statistics
JIRA | SUMMARY | DETAILS |
---|---|---|
Statistics on Rows support multiple sheets as input | Origin 2021 implemented it. | |
Matrix
JIRA | SUMMARY | DETAILS |
---|---|---|
More Shapes added to extract data from Matrix – Beta2 | In Image mode of matrix (View: Image Mode), user can use rectangle, circle, polygon, region tool to define region of interest and extract the data there. |
App
JIRA | SUMMARY | DETAILS |
---|---|---|
Let Customers to choose download new app xml | In origin2020b, origin will download new app xml when App center dialog is opened if new app info comes. it is not friendly since it takes more or less 10s to open app center dialog. In origin2021, user can download |