| Author |
Topic  |
|
|
Meistermann
Germany
Posts |
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
|
|
|
zachary_origin
China
Posts |
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 |
 |
|
|
Meistermann
Germany
Posts |
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 |
 |
|
|
Meistermann
Germany
Posts |
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
Germany
Posts |
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
|
 |
|
|
zachary_origin
China
Posts |
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 |
 |
|
| |
Topic  |
|