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
 Origin Forum
 Diffrent Color Band for Contour plots?

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
riaz Posted - 05/15/2006 : 04:01:50 AM
Origin Version (Select Help-->About Origin): Origin Pro 7.5 SR5(English version)
Operating System: Windows XP
At present in my contour plots i used a color band which comes in default in mixing of color, mainly from Blue-Green-Red. For my current problem i need diffenrt combination and that is from Blue - white - Red. Can some body guide me how to have diffrent band. for example, i potted this plot in igor, where the right one is BWR combination, which i want now to plot in origin. At present i can only plot the BGR combination. the reason behind such plot is to have good effects for black and white print, which can be seen.

http://tadw3.nifs.ac.jp/riaz/BWC.jpg

Best regards,
riaz



Edited by - riaz on 05/15/2006 04:03:52 AM

Edited by - riaz on 05/15/2006 04:04:54 AM

Edited by - riaz on 05/15/2006 04:30:33 AM

Edited by - riaz on 05/15/2006 04:32:38 AM
14   L A T E S T    R E P L I E S    (Newest First)
Deanna Posted - 05/21/2006 : 9:12:51 PM
You are welcome :)

Deanna
OriginLab GZ Office
riaz Posted - 05/20/2006 : 02:31:39 AM
Hi Deanna.
Thank you very much for the graph, now things are in control, and i can plot it as i like.
Thanks again for your effort, and also thanks to originlab.com for providing such an informative platform and helpful staff members.
Best regrads,
Riaz

Deanna Posted - 05/19/2006 : 04:53:54 AM
Hi, Riaz.

I have just send the graph to you. Please check your email.

Deanna
OriginLab GZ Office
riaz Posted - 05/19/2006 : 04:17:33 AM
When i keep nlevel=24, then i get differnt combination, like this one http://tadw3.nifs.ac.jp/riaz/Cntr6.tif but if i keep nlevel =8 then i get the one i wanted http://tadw3.nifs.ac.jp/riaz/Cntr10.tif. There is one more thing, when i get the counter plot for 8 level , and if i increase the number of level manually by clicking on plot, and chaage the number of level in plot details, then it again give me the old plots, BGR combination. So its some thing tricky happning.
Can you do me one more favor, can you send me the ogg file of the plot which you already ploted using the data of http://tadw3.nifs.ac.jp/riaz/Cntr16.ogg. i mean the one which plotted as shown in your earlier post. i.e http://www.originlab.com/ftp/forum_and_kbase/Images/Graph_color_contour2.jpg
this one. becuase i have another idea, if i save that graph as a template then the rest of counter plot will automatically follow that counter theme.
so please if possible send me the ogg file which contains this plot, http://www.originlab.com/ftp/forum_and_kbase/Images/Graph_color_contour2.jpg.
on riaz@nifs.ac.jp
regards,
Riaz



Edited by - riaz on 05/19/2006 04:20:22 AM
Deanna Posted - 05/19/2006 : 03:45:16 AM
I don't think there is a limitation on the number of color levels.

If you change your color levels again, you might modify the first line of my script to indicate the number of color levels.


nlevel=24;


Then re-run the script.

If you have any other questions, please feel free to tell me. I would be very happy to help!

Deanna
OriginLab GZ Office
riaz Posted - 05/19/2006 : 03:33:23 AM
Well Finally its working for me, i changed the levels to 8 i.e. (nlevel=8;), and with with 8 level its working fine. here is the output of the plot, http://tadw3.nifs.ac.jp/riaz/Cntr10.tif . Tell me is there any limitation of the level number, which i should not exceed? Becuase i would like to have a more fine plots, and that will come if i increase the number of levels. similar to the one you have plotted for 24 level.
thanks any way it will fulfill me requirements. I will be in touch with you if i want any change in the current code.
Regards,
Riaz



Edited by - riaz on 05/19/2006 03:37:19 AM
Deanna Posted - 05/19/2006 : 02:34:23 AM
Hi Riaz.

It seems that the levels have been changed in your graph. Would you please give me the modified OGG file? Then I can rewrite the labtalk script for you.

You may send it to tech@originlab.com. or post a link here.



Deanna
OriginLab GZ Office
riaz Posted - 05/18/2006 : 11:20:47 PM
Dear Deanna,
Thank you very much for the effort you put in my problem, thanks again. I run your code, and i am getting the plot as mentioned in the following link. Unluckilly i am getting Blue-Black-White combination, But i am intersted in Blue-White-Red combination.
http://tadw3.nifs.ac.jp/riaz/Cntr6.tif

As you already produced the Blue White Red combination , it means may be i am doing some mistake. Can you please suggest me what i am doing wrong.
Best regrads,
Riaz

Deanna Posted - 05/17/2006 : 9:46:54 PM
I am sorry I could not provide a good solution yesterday. I wrote a labtalk script later. It should do the trick.


nlevel=24;
whitelevel=int(nlevel/2);
interval1=int(256/whitelevel);
interval2=int(256/(nlevel-whitelevel-1));

layer.cmap.colorbelow=3;

//Initial R, G, B value for the blue color
r=0;
g=0;
b=255;

//Gradients from blue to white
for (ii=1; ii<whitelevel; ii++)
{
r+=interval1;
g=r;
color=r+256*g+65536*b;
LAYER.CMAP.COLOR$(ii)=color+16777216;
}

layer.cmap.color$(whitelevel)=17;

//Set R, G, B value for the white color
r=255;
g=255;
b=255;

//Gradients from white to red
for (ii=whitelevel+1; ii<nlevel; ii++)
{
g-=interval2;
b=g;
color=r+256*g+65536*b;
LAYER.CMAP.COLOR$(ii)=color+16777216;
}


Please run this code when your graph is activated. Remember to turn off the speed mode. You may do that in this way:
1) Double-clicking on the graph to bring up the Plot Detail dialog.
2) Click on "Layer1" and switch to "Size/Speed" tab;
3) Uncheck before "Worksheet data, maximum points per curve"

Then you should have a graph like what I have posted yesterday.

Thank you for sharing the experience with Origin.

Deanna
OriginLab GZ Office

Edited by - Deanna on 05/17/2006 10:57:04 PM
riaz Posted - 05/17/2006 : 06:39:12 AM
Yes absolutly this, thanks for replying here. I run the OGS file you send to me, but it was not giving me such plots. Please guide me how you made such plot.
Thanks for every thing,
Regards,
Riaz

Deanna Posted - 05/17/2006 : 05:45:29 AM
Hi riaz.

Is this what you want?



Deanna
OriginLab GZ Office
riaz Posted - 05/16/2006 : 12:12:35 AM
quote:

You can try the following:

1) Dounle-click on the contour plot to show Plot Details dialog.
2) In ColorMap/Contour tab, scroll down the list of fill-color bars in the box to show the green color you want to change.
3) Single-click on the green color bar to show the "Fill" dialog.
4) Change the fill color from green to white. Click OK.

Does this work for you?

--Hideo Fujii
OriginLab


Hi riaz,

You can control the number of levels, color of each level etc by programmatically accessing the contour plot. There is an example of this on the following page:
http://www.originlab.com/index.aspx?s=9&lm=71&pid=268
and look at the example Graphing:Customize Contour Plot

Easwar
OriginLab






Well I tried the suggestion suggested by Fujii san, it donot work, since by changing one green color will not solve the problem, since i have 16 or more color, and i want to change the whole theme from Red - green - Blue to Red- white- blue.
As far as the second suggestion is concerned given by Easwar, it looks as one of the solution, since in the program the have shown Red-green-Blue combination but becuase of my less knowledge of programing i am unable to convert them in Red -White- Blue combination.
I will need a kind favor from one of you, i am attaching a contour plot of Red-Green-Blue combination if you can kindly convert this in Red-white-Blue combination then please send me by email at riaz@nifs.ac.jp , and so i will save the conotur plot as template for my future plots.
The contr origion plot can be found on the following address,
http://tadw3.nifs.ac.jp/riaz/Cntr16.ogg

Looking forward for this kind favor.
Best regards,
Riaz

One more thing the following is the OGS file i am using to plot the conoturs, you can also recommend me any changes which i can make to get RWB combination.

[Contour]
type -n "Number of rows:$(Nrow), Column:129, Number of set:$(Nset)
Is it Ok?";

loop (ii,1,Nset)
{
// jj=10*ii-9;
%W=Mat$(ii);
win -a %W;

matrix -id;
worksheet -p 226 Khan.OTP;
Spectrum;
type -q $(ii);
%V=Cntr$(ii);
win -r %H %V;
};


[Debug]
layer.cmap.numcolors=8;
layer.cmap.zmax=200;
layer.cmap.colorHigh=1; // Red
layer.cmap.colorabove=10; // Wine

layer.cmap.zmin=-200;
layer.cmap.colorLow=3; // Blue
layer.cmap.colorbelow=8; // Navy

layer.cmap.color1=3; // Blue
layer.cmap.z1=-200;
layer.cmap.color2=33521664; //
layer.cmap.z2=-150;
layer.cmap.color3=4; // Sky-Blue
layer.cmap.z3=-100;
layer.cmap.color4=25231104; //
layer.cmap.z4=-50;
layer.cmap.color5=2; // Green
layer.cmap.z5=0;
layer.cmap.color6=6; // Yellow
layer.cmap.z6=50;
layer.cmap.color7=14; // Orange
layer.cmap.z7=100;
layer.cmap.color8=1; // Red
layer.cmap.z8=150;
layer.cmap.updatescale();


Nc=layer.cmap.numcolors; Nc=;
AZmax=layer.cmap.zmax; AZmax=;
AZmin=layer.cmap.zmin; AZmin=;
AZ1=layer.cmap.Z1; AZ1=;
AZ2=layer.cmap.Z2; AZ2=;
AZ3=layer.cmap.Z3; AZ3=;
AZ4=layer.cmap.Z4; AZ4=;
AZ5=layer.cmap.Z5; AZ5=;
AZ6=layer.cmap.Z6; AZ6=;
AZ7=layer.cmap.Z7; AZ7=;
AZ8=layer.cmap.Z8; AZ8=;
AZ9=layer.cmap.Z9; AZ9=;
AZ10=layer.cmap.Z10; AZ10=;
AZ11=layer.cmap.Z11; AZ11=;
AZ12=layer.cmap.Z12; AZ12=;

CAb=layer.cmap.colorabove; CAb=;
CBl=layer.cmap.colorBelow; CBl=;

loop (ii,1,8)
{
NumC=layer.cmap.color$(ii);
type "ii=$(ii) NumC=$(Numc)";
};



Edited by - riaz on 05/16/2006 12:13:45 AM

Edited by - riaz on 05/16/2006 01:37:13 AM
easwar Posted - 05/15/2006 : 10:49:04 PM
Hi riaz,

You can control the number of levels, color of each level etc by programmatically accessing the contour plot. There is an example of this on the following page:
http://www.originlab.com/index.aspx?s=9&lm=71&pid=268
and look at the example Graphing:Customize Contour Plot

Easwar
OriginLab

Hideo Fujii Posted - 05/15/2006 : 1:38:06 PM
You can try the following:

1) Dounle-click on the contour plot to show Plot Details dialog.
2) In ColorMap/Contour tab, scroll down the list of fill-color bars in the box to show the green color you want to change.
3) Single-click on the green color bar to show the "Fill" dialog.
4) Change the fill color from green to white. Click OK.

Does this work for you?

--Hideo Fujii
OriginLab


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