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
 Forum for Python
 how to plot many spectra (> 50) efficiently
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cts18488

United Kingdom
83 Posts

Posted - 01/23/2023 :  12:15:14 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 2021b and Service Release (Select Help-->About Origin):
Operating System: win10 ent

Is it possible to loop this code section in case I want to plot multiple spectra but in different panels? rather than pasting it multiple times and changing variables.

gl_0= gr1[0]
p0 = gl_0.add_plot(wks, coly='B', colx='A', type=202)

YimingChen

1617 Posts

Posted - 01/24/2023 :  1:41:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Instead of using the column name in the function, you can also use column indices.

James

Edited by - YimingChen on 01/24/2023 1:42:11 PM
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