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
 Labtalk for Plot detail
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Piety

4 Posts

Posted - 12/07/2010 :  10:14:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 6.0 Pro
Operating System: Windows XP

Does anyone know how to write a script to change Plot details of graphs?
For every graph, I have to change the plot detail (Page: Miscellaneous; Layer: size/speed; Line: width) manually. It is boring and time-consuming. Could someone help me fixing it, please? I really appreciate your help.

greg

USA
1379 Posts

Posted - 12/07/2010 :  3:32:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Look at the PAGE object to make changes there.
Look at the LAYER object and LAYER.X and LAYER.Y sub-objects for layer changes.
Finally, check out the SET command for changing plot properties.
Type these in the script window for example:
page.=<press Enter>
layer.=<press Enter>
layer.x.=<press Enter>

All much easier in 8.x since you can create a Theme and apply that theme to every graph in your project if you like.
Go to Top of Page

Piety

4 Posts

Posted - 12/07/2010 :  10:05:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have tried 8.0 Pro. Theme can set page settings only. Can not set the layer property.


I use Igor Pro before. It can print the command of every step in the command window. Can Origin 8.0 Pro work this way?

Go to Top of Page

Piety

4 Posts

Posted - 12/07/2010 :  10:25:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
greg, Thanks a lot. Script works well.
Go to Top of Page

Piety

4 Posts

Posted - 12/07/2010 :  11:34:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Really appreciate your help, greg. Theme Editing is very nice.
Go to Top of Page

greg

USA
1379 Posts

Posted - 01/07/2011 :  09:17:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Copy Themes is selection sensitive. If you select a Layer then all you will be copying is Layer properties - not page properties or data properties.
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