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 Line Problems on Gray Scale
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Meistermann

Germany
Posts

Posted - 07/28/2006 :  10:28:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

zachary_origin

China
Posts

Posted - 07/31/2006 :  10:49:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Meistermann

Germany
Posts

Posted - 08/01/2006 :  04:45:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Meistermann

Germany
Posts

Posted - 08/01/2006 :  05:08:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

Meistermann

Germany
Posts

Posted - 08/01/2006 :  05:15:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

zachary_origin

China
Posts

Posted - 08/01/2006 :  05:30:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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