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
 Zmin/Zmax in Plot Properties
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

TimmH

Germany
11 Posts

Posted - 06/24/2015 :  05:19:12 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

jasonzhao

China
262 Posts

Posted - 06/24/2015 :  06:09:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

TimmH

Germany
11 Posts

Posted - 06/26/2015 :  03:47:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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();
Go to Top of Page

jasonzhao

China
262 Posts

Posted - 06/26/2015 :  04:01:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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