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
 How can i disable color on a contour plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kencedric

Germany
13 Posts

Posted - 02/27/2012 :  11:08:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hallo everybody,
i ve made a graph with contour plot, command line as below:
worksheet -p 243 contour ogl:=1;
now i want to disable all the color in the graph...
How can i do that.
always thanks for ur Help...
Kendy from Germany

Drbobshepherd

USA
Posts

Posted - 02/27/2012 :  6:24:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Mix up a color palette that has no colors in it. Here is how:

Double-click your plot. Click on the ColorMap/Contours tab. Select Limited Mixing button, then use the From and To buttons to select None for your color palette. Then hit OK.
Go to Top of Page

Penn

China
644 Posts

Posted - 02/28/2012 :  03:29:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Kendy,

From the interface, you can follow Drbobshepherd's method. Or you can just uncheck the Enabled check-box in the Color Fill Control group, which is below the color map setting table.

From the script, there seems no script to do it directly. However, you can set each color level to none one by one. For example:

int numColors = layer.cmap.numcolors;  // get the number of colors
for(ii = 1; ii <= numColors; ii++)
{
	layer.cmap.color$(ii) = 4294967292;  // set the iith color to none	
}
layer.cmap.colorAbove = 4294967292;  // set the color of level above zMax to none
layer.cmap.colorBelow = 4294967292;  // set the color of level below zMin to none


Penn
Go to Top of Page

kencedric

Germany
13 Posts

Posted - 02/29/2012 :  07:32:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hallo Guys,
i thank you a lot for ur Help, the Programm code was really what i want.
You Guys have a nice Day...

Kendy
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