The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Add Graph to Sheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 09/21/2020 :  03:55:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2021 (64-bit) Beta 5 9.8.0.166
Windows 7 Pro x64 SP1

Greetings!

How do we run this command via LT?


---
Andrey

一击爆裂陈子豪

Taiwan
41 Posts

Posted - 09/21/2020 :  10:36:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I don't think there be such cmd...
Btw for OriginC you can use: https://www.originlab.com/doc/OriginC/ref/Layer-InsertGraph

Edited by - 一击爆裂陈子豪 on 09/21/2020 10:39:39 AM
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 09/21/2020 :  3:36:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by 一击爆裂陈子豪

I don't think there be such cmd...
Btw for OriginC you can use: https://www.originlab.com/doc/OriginC/ref/Layer-InsertGraph



Hm...
I want to do this in an after-import script.
Can I use OC there?

---
Andrey
Go to Top of Page

一击爆裂陈子豪

Taiwan
41 Posts

Posted - 09/21/2020 :  3:52:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, you can create your OriginC function and call it from LabTalk.
https://www.originlab.com/doc/OriginC/guide/Using-Compiled-Functions
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 09/21/2020 :  4:42:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We usually make a book with the graph sheet all setup and customized and then drag and drop new data files to the book. This will involve much less coding and allow later to make changes to the graph without knowing the code.

CP
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 09/22/2020 :  04:35:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by 一击爆裂陈子豪

Yes, you can create your OriginC function and call it from LabTalk.
https://www.originlab.com/doc/OriginC/guide/Using-Compiled-Functions


Thank you for the suggestion.

quote:
Originally posted by cpyang

We usually make a book with the graph sheet all setup and customized and then drag and drop new data files to the book. This will involve much less coding and allow later to make changes to the graph without knowing the code.
CP


OK. Can you share an example of such a book, please?

I design my workbook in such a way that each sheet contains data and an embedded plot illustrating the data on the sheet.
Therefore I make the import filter to import data on a separate sheet and create the graph as per specified template.

---
Andrey

Edited by - AKazak on 09/22/2020 04:38:56 AM
Go to Top of Page

minimax

357 Posts

Posted - 09/22/2020 :  05:25:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This example may help:
https://www.originlab.com/doc/User-Guide/Handling-Repetitive-Tasks#The_Workbook_as_a_Template_for_Processing_Multiple_Files
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000