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
 Copy style from one layer to another
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tom3m

USA
27 Posts

Posted - 01/31/2002 :  09:59:20 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have written a labtalk script to plot data from an arbitrary number of input files in known format in 4 layers on one graph page. This script is used frequently to do this, but since the exact data, number of files, exact data description, etc. changes each time the data is plotted, we have to adjust the style, legend, etc. to make a good visualization of the data. I would like to be able to copy the general style set up in the first layer to the other three layers in the graph page without copying the data plotted in the first layer (someone recently posted a method to copy the data + style - I just want to copy the style). Is there a simple way to do this in a script?

Thanks!

Laurie

USA
404 Posts

Posted - 02/05/2002 :  4:24:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Layer -ic copies the style and the data. For what you're looking for, you should create a 4 layer template and then your script should use this. Templates remember plot style information.

OriginLab Technical Support
Go to Top of Page

tom3m

USA
27 Posts

Posted - 02/07/2002 :  4:16:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I don't think your template solution will work for us since each time we create a 4 layer plot, the style might be different. For example, the first time I make the 4 layer plot I might want to alternate the color of every line in the plot from blue to red. The second time I make the 4 layer plot, I might want to color the first 2 lines in each plot red, the next 3 blue, the next 5 green, and the next 2 cyan. I also might want to change the symbol types, etc.

Right now the script makes the 4 layer plot with nicely formatted axes, labels, etc., but it is up to the user to change the style to fit how they wish to visualize their data. It would further speed up the plotting process if the user could set the style for the first layer and then copy it to the other 3 layers without changing the data plotted in the other 3 layers.

Thanks!
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