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
 Colormap (Farb-Skala) 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

asenv

35 Posts

Posted - 04/30/2010 :  11:46:05 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.1G SR1
Operating System:Windows 2000 Proffesional

I would like to access the colormap/contour (Farbpalette/Kontur) properties with LabTalk. I am creating a contour plot from matrix with:
worksheet -p 226;

After that creating the scale with:
run.section(Standard,Spectrum);

After that placing the scale with "graphicobject.propert":
SPECTRUM1.X=xxx;
...
After that manipulating the scale like:
LAYER1.CMAP.COLORABOVE=xxx;
LAYER1.CMAP.COLORBELOW=xxx;
LAYER1.CMAP.COLORHIGH=xxx;
LAYER1.CMAP.COLORLOW=xxx;
LAYER1.CMAP.COLORMISS=xxx;
LAYER1.CMAP.COLORMIXMODE=1;
LAYER1.CMAP.Z1=xx;
LAYER1.CMAP.COLOR1=xxx;
LAYER1.CMAP.Z2=xx;
LAYER1.CMAP.COLOR2=xxx;
.
.
.
LAYER1.CMAP.ZMAX=xx;
LAYER1.CMAP.ZMIN=xx;
layer.cmap.updateScale();


The Picture is just for example what I am talking about:


Now I want to access programatically (LabTalk or OriginC) the Properties of this color scale (Farb-Skala) like: Increment, Width of scale, FontSize .. You can see them on the next pic.


Also I would like to access the contour (Farbpalette/Kontur) lables (Beschriftungen) of the layers (ebenen). By default are all checked and I need to choose sometimes 3 (92,93 and 94) or (94,95,96) or 4. Best is to be able to every single one of them separately. Then from the next tab (of the pic down) Numerisches Format I want to set the decimal places of the numbers and from tab "Beschriftung" the font size.

I hope you can help me, because I could not find this information, neither online nor from support.

With Best Regards
Asen

Iris_Bai

China
Posts

Posted - 05/03/2010 :  11:34:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Asen,

http://ocwiki.originlab.com/index.php?title=OCGuide:Customizing_Data_Plots#Setting_Colormap_Settings

This page demonstrates how to set the options in Plot Details dialog three Tabs in Origin C, for example, show/hide labels, set the format of lines, set the format on the label text, and the numeric formats. Just for the third picture you mentioned above.

For the second picture, the color scale control, we did not support the programming way (LabTalk or Origin C) to setup. However, we will improve the color scale control GUI and support programming way in Origin8.5.

Thanks for your understanding.

Iris

Edited by - Iris_Bai on 05/03/2010 11:38:04 PM
Go to Top of Page

asenv

35 Posts

Posted - 05/07/2010 :  07:59:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Iris. I will take a look at the link you send me. Is there a way to set somewhere the default values (from second picture) of Breite des Farbbalkens/width of color scale and the text size and increment, so that when a color scale is created it automatically shows up with lets say text size (font) 7 instead 12, width 300 instead 400 and increment 2? I assume these values should be read from somewhere. Or maybe save this color map as template (with my settings) and then load this template for the current contour?

Edited by - asenv on 05/07/2010 10:05:45 AM
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