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
 Colormap Line Problems on Gray Scale

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
Meistermann Posted - 07/28/2006 : 10:28:01 AM
Origin Version : 6.1
Operating System: Win 2000

Hello,

Sorry but I have a problem with the 2D Gray scale Graph (I hope the translation is good because I am working with a German version)

I just want a simple thing, the white lines in the GrayScale could be Hidden manually by doing :
Graph Details/"Matrix Name"/ColorPalette-Contour
And then go to "Lines"
(This was all translated too...)

I know that I could use a template, ok but the template also save the colormap with all the z values of the colormap, but I have to analyse a lot of matrix which are all different so my colormap must be adapted to the matrix.

So when I do the customization of the colormap these white lines are reappearing !

Here is the Program for the customization of the color map


sum(%N); // %N is the active matrix

run.section(plot3D,GrayScaleMap);
layer.Y.from=nRows;
layer.Y.to=1;

delta= sum.sd/3; //Interval between each color
minscale = sum.mean - 2*sum.sd; //minimum of the colorscale
maxscale = sum.mean + 2*sum.sd;
nscale = ((maxscale-minscale)/delta); // number of colors


layer.cmap.numcolors = nscale;
layer.cmap.zmin = minscale;
layer.cmap.zmax = maxscale;

for(i=2;i<=nscale;i++)
{
layer.cmap.z$(i) = minscale + ($(i)-1)*reg;
}

%A=%C;
page -t contgray.otp;
layer -i226 %A;
doc -uw; clr;

// contgray is the template where I saved the changes for the white lines, but then the colormap values are changed too

5   L A T E S T    R E P L I E S    (Newest First)
zachary_origin Posted - 08/01/2006 : 05:30:44 AM
Could you send the data for that graph to us by mailing to tech@originlab.com ? So let us to find if there is any workaround.

Zachary
OriginLab GZ Office
Meistermann Posted - 08/01/2006 : 05:15:41 AM
This post is about what I want my progamm to do :

If I do the right colormap and then manually hide the white lines, I obtain this :



This what I want (better than the other ones no?) And I expect my programm to do it, can you help me now?

Thanks for reply
Meistermann Posted - 08/01/2006 : 05:08:28 AM
So then if I do the last four lines, I get this :





Ok thereīs no more white contours, cool, but now I have the wrong scale(colormap), see itīs not the same as on the first picture (this one was the good one) and then itīs all blue.
Meistermann Posted - 08/01/2006 : 04:45:57 AM
Ok but I donīt have Origin C, Iīm working with Origin 6.1 and I cannot have another version.

No the lines are not hidden by default, Iīm talking about these white lines that encountered the colors in a gray scale map.
(I hope my english is good enough for you to understand)

When Iīm doing the code I have sent in my first post but NOT the four last lines :

%A=%C;
page -t contgray.OTP;
layer -i226 %A;
doc -uw; clr;

I get this, see itīs all white !



Edited by - Meistermann on 08/01/2006 05:01:19 AM
zachary_origin Posted - 07/31/2006 : 10:49:28 PM
Hi,

The lines by default are hidden for Gray Scale Map, isn't it? Why do you need code to hide it? Is that something I misunderstood?

Indeed it is not convenient under Version 6.1 to control these in colormap, while it is much easier to directly set the lines hidden or shown in later version using Origin C code.

Edited by - zachary_origin on 07/31/2006 10:51:57 PM

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