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
 LabTalk Forum
 Contour Lines
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sebbey

Germany
70 Posts

Posted - 06/20/2012 :  11:26:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.: 8.6.0G
Operating System: Windows Professional

Hi everyone,

I have another Problem concerning the contour plots. First I want to show you a Picture:



the contour lines (Z-axis) are lines of constant efficiency (0,55 - 0,65). Although the highest efficiency is actually 0.65, I would like these lines to show values up to 0,8. This is what i tried so far:


layer1.cmap.zmin=0.5;
layer1.cmap.zmax=0.8;
layer1.cmap.inc=0.05;


sec -p 0.2;
layer1.cmap.SetLevels();
sec -p 0.2;
layer1.cmap.updateScale();


Can anyone tell me, if my code's wrong, or if I have to work out a different approach to this problem.
Maybe its possible to extrapolate the values for higher efficiencies, in order to be able to draw them.

Thanks,
sebbey

Kathy_Wang

China
159 Posts

Posted - 06/21/2012 :  03:26:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

In your case Z value is restricted to 0.55 - 0.65, and it is not possible to draw a contour line at 0.8 level, where there is no data. So you would need to extrapolate your original data in order to draw a contour line at 0.8 level.

To do this, you may also play with the matrix. Here I assume you have XYZ worksheet data. So basically you use "XYZ2Mat" x function to transform your data into a matrix, set Random(Renka Cline) as the gridding method, or you could use "xyz_renka" x function directly(http://www.originlab.com/www/helponline/Origin/en/Programming/mergedProjects/X-Function/X-Function/Xyz_renka.html)

Note that in order to extrapolate values,in the gridding settings, you should use smaller gridding cell size, i.e. bigger column and row numbers.

For example, if your original data forms a 4*4 matrix by default, you could transform it to a 8*8 matrix, cause during this transform, Origin will interpolate and extrapolate values into the matrix.

If your original data is already a matrix, you may transform it back to a worksheet as XYZ columns first and then do the similar as above.

You would need to try this with your own data set to see what gridding setting is the best.

Hope this information helps

Kathy
Originlab

Edited by - Kathy_Wang on 06/21/2012 03:34:53 AM
Go to Top of Page

sebbey

Germany
70 Posts

Posted - 06/21/2012 :  04:31:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Kathy,

Thanks for your suggestions.
Although I was hoping for an easier solution, I'll try your approach.

Sebbey
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