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
 Polar contour plot from matrix
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AndreLz

Brazil
4 Posts

Posted - 08/22/2011 :  4:02:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.5.1 and Service Release (Select Help-->About Origin):
Operating System: WinXP

I need to plot a polar contour plot from the data in a matrix.

Each line of the matrix is the R value and the columns the theta. But I notice that Origin only accepts three columns (R, theta and the value) and the matrix has 19 lines (0 to 90, increase by 5) and 73 colums (0 to 360, increased by 5), with the entries of it being the values that I would like to get the contour.

Is there a way to plot all this matrix in just one step? I know that it is possible in the recatngular contour plot.

Thanks
Andre

Thanks
Andre

Hideo Fujii

USA
1582 Posts

Posted - 08/24/2011 :  3:18:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andre,

You can first convert your matrix to a XYZ worksheet ("Matrix: Convert to Worksheet" menu, then Method="XYZ Columns"). Then, you can plot the polar contour from the worksheet. If you want a one-step operation, for example, you can run a script for the XYZ conversion and plotting, e.g.
m2w method:=xyz option:=xconst;
wks.colSel(1,1);
wks.colSel(2,1);
wks.colSel(3,1);
worksheet -p 243 PolarContour;
You can make a script file(.OGS) of this code, and make a tool button to run the script file. Please see details in the following section in Origin Help:
  UserGuide> Customization and Automation> Customizing Toolbars>
    > User-Defined and Custom Toolbars and Toolbar Buttons

Hope this helps.

--Hideo Fujii
OriginLab
Go to Top of Page

AndreLz

Brazil
4 Posts

Posted - 08/25/2011 :  11:52:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo! Thanks for the help!

I've made what you suggested - the conversion to XYZ worksheet - but it didn't work. What i got was a piece of the graph only ranging between 0 and 10.



But the idea was perfect and useful! I don't know if Origin can make this variation of range to the full 360, because it normalized my entire matrix to fit in the 10 interval; what I did then was to use the same logic and create a matrix ranging from 0 to 360



Well, this is the expected result - still need some formatation.
In the end it was possible convert the matrix to the graph I needed.
I thank you again for the attention and help Hideo!

Andre
Go to Top of Page

cristianwallace

Argentina
2 Posts

Posted - 12/05/2012 :  1:12:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello, I have a problem with this Graph! i need to make it like a polar contour but I can´t... can you help me?
Thanks!!




I need a graph like this! and I cant!!



i can send the matrix by email! or from here, i dont know how!

renewable energy
Go to Top of Page

snowli

USA
1379 Posts

Posted - 12/05/2012 :  1:42:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

Origin supports polar contour with different R and Therta column orders. It looks you used wrong one. See your Radius axis shows 350.

If you have Radius column first and then Therta column, then the Z columns, please use Plot: Contour: Polar Contour r(X)therta(Y)

If you have Therta column first and then Radius column, then Z columns, please use Polar Contour therta(X) r(Y).


Thanks, Snow Li
OriginLab Corp.

Edited by - snowli on 12/06/2012 09:40:04 AM
Go to Top of Page

cristianwallace

Argentina
2 Posts

Posted - 12/06/2012 :  3:49:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much! I could do it!!!




quote:
Originally posted by snowli

Hello,

Origin supports polar contour with different R and Therta column orders. It looks you used wrong one. See your Radius axis shows 350.

If you have Radius column first and then Therta column, then the Z columns, please use Plot: Contour: Polar Contour r(X)therta(Y)

If you have Therta column first and then Radius column, then Z columns, please use Polar Contour therta(X) r(Y).


Thanks, Snow Li
OriginLab Corp.



renewable energy
Go to Top of Page

alirezausefi

1 Posts

Posted - 05/26/2014 :  08:58:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi
i have 3 type of data, Azimuth, degree, dip, degree, and value, dimensionless. i want to have a contour plot that has azimuth as theta dip as radius and value as z part. the ranges of data are:
Azimuth: 0:1:360
Dip: 0:1:90
0.25<value<2.5
When i draw the contour there are some points that have under zero value. i dont know why. but when i change the smooth parameters these values is corrected but the total contour is totally bad. how can i solve this problem?
if there is any one that can help me with my data, i can send them to him.
this is my email: alireza.yousefi@ut.ac.ir
Go to Top of Page

Echo_Chu

China
Posts

Posted - 05/26/2014 :  10:04:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, alireza

This may because we interpolate to create contour plot from the data in worksheet. You can also look at the algorithm in the page below.

http://www.originlab.com/doc/Origin-Help/Create-Contour-Graph#Algorithm_for_Creating_a_Contour_from_a_Worksheet

If you still have problem, could you send us your project file so that we can identify the problem?

You could follow the instructions below to send your file.
http://www.originlab.com/index.aspx?go=Support&pid=752


Echo
OriginLab Technical Service
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