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 Origin C
 Getting error 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

couturier

France
291 Posts

Posted - 12/07/2020 :  1:43:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2021
Operating System:win10

Hi,

I have a graph with dataplots, some with errors, and I need to access all the data.
I can get the main dataplot with
foreach (DataPlot dp in gl.DataPlots)
{
	vector vecX, vecY;
	dp.GetDataPoints(0, -1, vecX, vecY);
	some other code;
}

but how can I access the error plots ?

Thanks

Szone1

Hong Kong
6 Posts

Posted - 12/10/2020 :  11:42:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
GetDataPoints method does have vErr argument, please check the document.
https://www.originlab.com/doc/OriginC/ref/DataPlot-GetDataPoints
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 12/10/2020 :  3:38:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
There is a bug in that function, if either of the following, will fail:

1. data not in worksheet, but loose datasets
or
2. error bar was set to show Plus only.

CP
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