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
 Contour color fill plot from worksheets (XY)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AGV1987

Germany
2 Posts

Posted - 01/02/2023 :  1:45:21 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

Dear Origin community,
I want to plot a contour color fill from a set of worksheets that were obtained during in situ XRD. Each worksheet is a XY (dat files) with 2theta(X) and intensity(Y). Each worksheet represents a pattern, and are equally spaced in time (I mean, time from worksheet to worksheet is constant/30s).
I want to plot the contour color fill to show:
x axis - 2theta
y axis - time (all the worksheets, one after the other)
z axis (or colour intensity code in the contour) - intensity
Somehow I cannot find any tutorial on how to construct such plot from a set of worksheets (XY). Can someone support?
Best,
A

aplotnikov

Germany
169 Posts

Posted - 01/03/2023 :  05:21:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You have to convert your xyz-data into a matrix first.
https://www.originlab.com/doc/Origin-Help/XYZGridding-Method
Go to Top of Page

snowli

USA
1417 Posts

Posted - 01/03/2023 :  09:46:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It sounds like you have XY pairs in multiple worksheets.

Are all X (2theta) the same on each sheet?

If they are the same, u have to put all Ys into same sheet so they data is like XYYYY (1 x column and multiple Y columns) before plotting.
The time info. of each Y column can be put to column label row, e.g. comments row 0, 30, 60, ....
Highlight such XYYYY columns to plot contour.
https://www.originlab.com/doc/Origin-Help/Plot-3D-Contour-VirtMat

There are multiple ways to put Ys in same worksheet.
1. during import, u can choose import all files into same sheet, but from 2nd file on, only import the Y data
2. Using Worksheet: Append worksheet. columnwise.

If X data are not the same for each Y column, then u will need to do interpolation, etc. to make all XY have the same X first before putting all data into same sheet.

Thanks, Snow
Go to Top of Page

AGV1987

Germany
2 Posts

Posted - 01/06/2023 :  09:05:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

This was perfect, thank you very much Snowli

quote:
Originally posted by snowli

It sounds like you have XY pairs in multiple worksheets.

Are all X (2theta) the same on each sheet?

If they are the same, u have to put all Ys into same sheet so they data is like XYYYY (1 x column and multiple Y columns) before plotting.
The time info. of each Y column can be put to column label row, e.g. comments row 0, 30, 60, ....
Highlight such XYYYY columns to plot contour.
https://www.originlab.com/doc/Origin-Help/Plot-3D-Contour-VirtMat

There are multiple ways to put Ys in same worksheet.
1. during import, u can choose import all files into same sheet, but from 2nd file on, only import the Y data
2. Using Worksheet: Append worksheet. columnwise.

If X data are not the same for each Y column, then u will need to do interpolation, etc. to make all XY have the same X first before putting all data into same sheet.

Thanks, Snow

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