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
 Zmin/Zmax in Plot Properties

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
TimmH Posted - 06/24/2015 : 05:19:12 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.6
Operating System: Win7 64B

Hello,

why is zmin / zmax not working here ? i dont get it!

	Range speedLines = (5,6);
//	Range surge = (17,18);
//	Range choke = (21,22);
	
	Page.Active$=%(map_page$);
	Range effPlot = (5,7);
	Range AcousticPlot = (5,6,27);		
	Range AcousticPlot2 = (5,6,26);		
	
	plotxy iy:=effPlot plot:=202 ogl:=<new template:="%OTemplates\Graphs\Standard_ICSI">;
	layer.show=0;

	plotxyz iz:=AcousticPlot plot:=243 ogl:=<new template:=%OTemplates\Graphs\AcousticMap1>;	

	plotxyz iz:=AcousticPlot2 plot:=243 ogl:=<new template:=%OTemplates\Graphs\AcousticMap2>;		

	///////////////////////////////////////////////////////////
	////  Add Choke, Surge & Speed Lines to the 2nd Layer  ////
	///////////////////////////////////////////////////////////
	page.active$ = 2;
//	layer -i202 surge;
//	layer -i202 choke;
	layer -i202 speedLines;
	
	layer.plot = 2;
	set %C -cl color(black);
	set %C -c color(black);
	set %C -w 300;
	set %C -d 1;
	set %C -skip 100;
	set %C -z 0.1;
	
	layer.cmap.zMin=76;
	layer.cmap.zMax=110;
	layer.cmap.numMajorLevels=17;
	layer.cmap.colorHigh=1;
	layer.cmap.colorAbove=1;
	layer.cmap.colorlow=3;
	layer.cmap.colorBelow=3;
	layer.cmap.zMissing=-1;
	layer.cmap.showLabels(3);



Regards,

TimmH
3   L A T E S T    R E P L I E S    (Newest First)
jasonzhao Posted - 06/26/2015 : 04:01:06 AM
Hello,

You can share your OPj file and Templates used in the script with us (tech@originlab.com) to make a further check.

Best regards!
Jason
OriginLab Technical Service
TimmH Posted - 06/26/2015 : 03:47:16 AM
Added the to lines at the end of my code.. still not the correct result, zmin/zmax is still the low/high value of my data.

	layer.cmap.zMin=76;
	layer.cmap.zMax=110;
	layer.cmap.numMajorLevels=17;
	layer.cmap.colorHigh=1;
	layer.cmap.colorAbove=1;
	layer.cmap.colorlow=3;
	layer.cmap.colorBelow=3;
	layer.cmap.zMissing=-1;
	layer.cmap.showLabels(3);
	layer.cmap.SetLevels();
	layer.cmap.updateScale();
jasonzhao Posted - 06/24/2015 : 06:09:22 AM
Hello,

Please check with the note1 in this page:
http://www.originlab.com/doc/LabTalk/ref/Layer-CMap-obj

When changing the following properties, you should call layer.cmap.SetLevels() to reset the color map, and then call layer.cmap.updateScale()...
You may need to add the script below in your code:

layer.cmap.SetLevels();
layer.cmap.updateScale();


Best regards!
Jason
OriginLab Technical Service

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