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
 Changing layer of a data plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LC_

42 Posts

Posted - 01/29/2014 :  07:54:08 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.1 SR1
Operating System: Win 7

Hi all

Maybe what I'm going to ask is easy, but I couldn't really find in Labtalk Help. For getting the layer of a data plot, one can use the range.getLayer() method, but apparently there is no method such as a "set layer" for changing the layer of a data plot in a graph.

I am writing a script that takes an existing graph with i=n layers in one layer. I need to "burst" the plots into j=n different layers, one data plot for each layer. How can I move the data plot i=k from layer j=1 to j=k like one would be able to do manually by dragging the data plots in the Plot Setup?

Thanks for the help

lkb0221

China
497 Posts

Posted - 01/29/2014 :  11:32:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Leonardo

This is not necessary to be implemented by script.
Please try the "Extract to Layers" tool. (By default at the right edge of the window, right below "Rescale" button).

Zheng
OriginLab
Go to Top of Page

LC_

42 Posts

Posted - 01/30/2014 :  02:31:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Zheng

Thanks for your answer, this works. The approach is ok for using once in a while, but I would still like have this option in a script for some repetitive analysis that I have to do (the script also does some other things). I couldn't find an associated x-function, it's ok if I have to rewrite it in Origin C...
Go to Top of Page

lkb0221

China
497 Posts

Posted - 01/30/2014 :  12:39:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, LC

You can try "layer -j" command.
It will extract multiple data plots in a single layer into a multiple panel (layer) graph in which each data plot displays in its own layer.
Then you can use other commands to arrange the layers.

Zheng
OriginLab
Go to Top of Page

Steady75

Austria
1 Posts

Posted - 01/31/2014 :  5:20:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I don't find the Extract to Layers" tool. Help please.

Leslie
Go to Top of Page

lkb0221

China
497 Posts

Posted - 02/03/2014 :  09:37:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Leslie

You can find the individual button by "View: Toolbars...", "Button Groups" tab, "Graph" group (in the left panel), the sixth button in the right panel.

Zheng
OriginLab
Go to Top of Page

LC_

42 Posts

Posted - 02/04/2014 :  07:23:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Zhen. Thanks a lot - this command does exactly what I needed!
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