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
 Origin Forum
 How to find bounded area between two curves.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

xerxes

8 Posts

Posted - 02/11/2011 :  1:30:04 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Pro Ver8. and Service Release 3 (Select Help-->About Origin):
Operating System: Windows 7 64 bits

I have the following two curves as shown in the picture:
The question is how do find the area bounded by the rectangle?
Fill Area is just filled up everything below the upper curve.
thanks.
Cheers
Xer

[URL=http://img822.imageshack.us/i/graph4.jpg/][/URL]

Penn

China
644 Posts

Posted - 02/11/2011 :  9:04:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Xer,

I cannot see your picture. Could you please make sure that the image link is available? Otherwise, you can insert the image by clicking the Insert Image button.



Penn
Go to Top of Page

xerxes

8 Posts

Posted - 02/12/2011 :  01:57:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Penn,
That's weird, I will repost here again using the method you just shown. thanks
Cheers
Xer
Go to Top of Page

xerxes

8 Posts

Posted - 02/12/2011 :  02:05:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
]
Go to Top of Page

Penn

China
644 Posts

Posted - 02/12/2011 :  04:35:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Xer,

I am not sure whether you want the area of the rectangle itself or the area between two curves.

If you want the area of the rectangle and the rectangle is a graph object. You can double click on it to open the Object Properties dialog. Then go to the Control tab to get the object name. For example, if the control name is "Rect", you can calculate the area of the rectangle in the Command Window (or Script Window) by:

Rect.dx * Rect.dy =


If you want to calculate the area between the curves, you can follow:

Note: If you want the area between the whole curves, but not part of them, please start from step 3.

1. Activate the graph, then click the Regional Data Selector button from the Toolbar to select part of one plot that you want to calculate area in the graph.

2. Repeat step 1 for another curve.

3. Select menu Analysis: Mathematics: Integrate to do integration of the selected part of data plot.

4. Repeat step 3 for another curve, you can change the Input data by clicking the triangle button to the right of Input in the open dialog.

5. In the source worksheet, two more columns are added with the integrated results. The maximum in each column is the area value under each curve.

6. To get the area between two curves of the selected part, take the difference of the two maximum values.

Penn

Edited by - Penn on 02/12/2011 05:05:48 AM
Go to Top of Page

xerxes

8 Posts

Posted - 02/12/2011 :  10:26:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Penn

Hi Xer,

I am not sure whether you want the area of the rectangle itself or the area between two curves.

If you want the area of the rectangle and the rectangle is a graph object. You can double click on it to open the Object Properties dialog. Then go to the Control tab to get the object name. For example, if the control name is "Rect", you can calculate the area of the rectangle in the Command Window (or Script Window) by:

Rect.dx * Rect.dy =


If you want to calculate the area between the curves, you can follow:

Note: If you want the area between the whole curves, but not part of them, please start from step 3.

1. Activate the graph, then click the Regional Data Selector button from the Toolbar to select part of one plot that you want to calculate area in the graph.

2. Repeat step 1 for another curve.

3. Select menu Analysis: Mathematics: Integrate to do integration of the selected part of data plot.

4. Repeat step 3 for another curve, you can change the Input data by clicking the triangle button to the right of Input in the open dialog.

5. In the source worksheet, two more columns are added with the integrated results. The maximum in each column is the area value under each curve.

6. To get the area between two curves of the selected part, take the difference of the two maximum values.

Penn



Hi Penn,
1st of all, thanks for your help. I need to calculate the area of the rectangle, this graph is for my solar cell efficiency calculation. the upper curve is the dark current, and the lower is current after shone with light. the rectangle area is maximum power of the solar cell. I will try out your method now and update here again. thanks a millions
Cheers
Xer
Go to Top of Page

xerxes

8 Posts

Posted - 02/12/2011 :  10:34:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Penn

Hi Xer,

I am not sure whether you want the area of the rectangle itself or the area between two curves.

If you want the area of the rectangle and the rectangle is a graph object. You can double click on it to open the Object Properties dialog. Then go to the Control tab to get the object name. For example, if the control name is "Rect", you can calculate the area of the rectangle in the Command Window (or Script Window) by:

Rect.dx * Rect.dy =


If you want to calculate the area between the curves, you can follow:

Note: If you want the area between the whole curves, but not part of them, please start from step 3.

1. Activate the graph, then click the Regional Data Selector button from the Toolbar to select part of one plot that you want to calculate area in the graph.

2. Repeat step 1 for another curve.

3. Select menu Analysis: Mathematics: Integrate to do integration of the selected part of data plot.

4. Repeat step 3 for another curve, you can change the Input data by clicking the triangle button to the right of Input in the open dialog.

5. In the source worksheet, two more columns are added with the integrated results. The maximum in each column is the area value under each curve.

6. To get the area between two curves of the selected part, take the difference of the two maximum values.

Penn




Hi Penn
I need the area of the rectangle ( rectangle itself is not an object)
I'm following your step 1, but how do I (select part of one plot) I really couldn't select part of one plot. when I click on regional data selector, do I hold down the left buttons and drag the cursor to select my part of one plot? If so after I release my button, there is only 1 marking indicates the end of selection. but no marking on my start of selection. how should I solve this?

Thanks
Cheers
Xer
Go to Top of Page

Penn

China
644 Posts

Posted - 02/13/2011 :  8:59:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Xer,

Just look at the picture you loaded, I have no idea how you add the rectangle to the graph. Maybe you can try the screen reader tool or the data reader tool to get the coordinates of the rectangle first, and then you can calculate the width and height of the rectangle by using the coordinates. With the width and height, you will get the area of rectangle by width*height.

By the way, about how to select part of data from the graph, please refer to this online help.

Penn
Go to Top of Page

xerxes

8 Posts

Posted - 02/13/2011 :  10:42:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Penn

Hi Xer,

Just look at the picture you loaded, I have no idea how you add the rectangle to the graph. Maybe you can try the screen reader tool or the data reader tool to get the coordinates of the rectangle first, and then you can calculate the width and height of the rectangle by using the coordinates. With the width and height, you will get the area of rectangle by width*height.

By the way, about how to select part of data from the graph, please refer to this online help.

Penn



Hi Penn,
Thanks, I will do it by finding out the rectangular co-ordinates, thanks again for your patients in explaining the details.
Cheers
Xer.
Go to Top of Page

xerxes

8 Posts

Posted - 02/16/2011 :  09:51:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Penn

Hi Xer,

Just look at the picture you loaded, I have no idea how you add the rectangle to the graph. Maybe you can try the screen reader tool or the data reader tool to get the coordinates of the rectangle first, and then you can calculate the width and height of the rectangle by using the coordinates. With the width and height, you will get the area of rectangle by width*height.

By the way, about how to select part of data from the graph, please refer to this online help.

Penn


Hi Penn,
I try out using the data reader tool, it works, the only downside is that you can only select 1 point at a time, anyway this is not a big issue, thanks for your time in explaining the steps, you've been a great help.
thanks again
Xer
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