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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Contour Lines

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
sebbey Posted - 06/20/2012 : 11:26:05 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
sebbey Posted - 06/21/2012 : 04:31:32 AM
Hi Kathy,

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

Sebbey
Kathy_Wang Posted - 06/21/2012 : 03:26:26 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000