Author |
Topic |
|
edu404
Brazil
6 Posts |
Posted - 06/11/2024 : 12:14:58 PM
|
Origin Ver: 2024 Academic Operating System: Windows 10
Hi everyone,
I'm currently working on a project where I need to plot data points from a TXT file. I would like to use a specific column as error bars for my data points. However, I'm having trouble figuring out how to achieve this using the Origin Pro Python library.
Could someone guide me on the correct approach to use the column as error bars for my data points in Origin Pro using Python?
Thank you in advance for your help!
Edu |
|
ChaoC
USA
174 Posts |
|
edu404
Brazil
6 Posts |
Posted - 06/12/2024 : 08:21:10 AM
|
When i open the opju file i see in the worksheet the error bar, however how i can plot this error bar using the add_plot, for example, i use coly for Y-axis, colx for X-axis and i dont know how to get the errorbar calling.
Example of my code:
for col in range(1, wks.cols): wks.cols_axis('nnnxye') plot = gp[0].add_plot(wks, coly='Rat_first', colx='Period [s]', cole='Rat_first.1', type = 202) plot.color = colors[col % len(colors)] plot.set_int('line.width', 2) plot.set_int('lineStyle', 1) plot.set_int('lineThickness', 1) gp[0].rescale()
Edu |
Edited by - edu404 on 06/12/2024 08:22:36 AM |
|
|
ChaoC
USA
174 Posts |
|
|
Topic |
|
|
|