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
 Multi-Grouping in single graph layer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

parcomilati

6 Posts

Posted - 10/27/2022 :  10:57:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello everybody,
I'm trying to fully automate the graphing of a big amount of data. The last piece that I need is a command to group data in different groups inside the same layer. The command layer -g is not helpful since it groups all the curves inside a single big group.
Thank you so much

YimingChen

1683 Posts

Posted - 10/27/2022 :  12:13:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Can you provide more details on the graph you are making? Why do you need to break the plots into multiple groups? If your data are all from one worksheet, you can probably make a graph template first and then plot the data using the template. Thank you.

James
Go to Top of Page

parcomilati

6 Posts

Posted - 10/27/2022 :  12:46:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi and thank you for answering. So for example I have a workbook with different worksheets each containing data collected at different time period. In a worksheet there are 3 columns, one X and two Y (let's call them Y1 and Y2). Till now with my script I'm able to plot Y1 and Y2 for the different time point in the same layer. What I want is to collect the Y1 values in a group inside the layer and Y2 values in a different group inside the same layer. I think to add the template after the grouping but you could advise me also on that. Anyway between the posting of my query and your answer I've discovered that the layer -g function accept a start and end index for grouping so it completely solves my problem. If you think that there are better ways to do it I would like to know it please:)
Go to Top of Page

YimingChen

1683 Posts

Posted - 10/28/2022 :  10:08:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you. Your method of grouping plots by plot indices is good.
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