Custimize Colormap

中文/English

Isotropic, Anisotropic, Dispersion Model, Lumped elements, all the structure can set the face color, edge color, and the transparency

reference :

http://www.mathworks.com/help/matlab/ref/patch-properties.html

Key-in the color to matlab example :

Acid Green 69% 75% 10%

http://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F


this figure set the face color only

this figure set the edge color only

What is the transparency, this is a Coreshell example



【geometries】


%=================球 sphere===========================
radius=200e-9;  %diameter=2*radius
nindex=1^2;
sigma=0;
choice='E_Model1'; %E_Iso,PEC,M_Iso,PMC,E_Model1,M_Model1,EM_Model1
gridtype=-1; %electric material -1; magnetic material 1; other 0
xposition=icenter*gdx;
yposition=jcenter*gdy;
zposition=kcenter*gdz;
Iso_Sphere(choice,gridtype,nindex,sigma,xposition,yposition,zposition,radius)
%=================球 sphere===========================
 

%=================球 sphere===========================
radius=150e-9;  %diameter=2*radius
nindex=1^2;
sigma=0;
choice='E_Model2'; %E_Iso,PEC,M_Iso,PMC,E_Model1,M_Model1,EM_Model1
gridtype=-1; %electric material -1; magnetic material 1; other 0
xposition=icenter*gdx;
yposition=jcenter*gdy;
zposition=kcenter*gdz;
Iso_Sphere(choice,gridtype,nindex,sigma,xposition,yposition,zposition,radius)
%=================球 sphere===========================
 
%=================球 sphere===========================
radius=70e-9;  %diameter=2*radius
nindex=1^2;
sigma=0;
choice='E_Model3'; %E_Iso,PEC,M_Iso,PMC,E_Model1,M_Model1,EM_Model1
gridtype=-1; %electric material -1; magnetic material 1; other 0
xposition=icenter*gdx;
yposition=jcenter*gdy;
zposition=kcenter*gdz;
Iso_Sphere(choice,gridtype,nindex,sigma,xposition,yposition,zposition,radius)
%=================球 sphere===========================


as the transparency equal to 1, the structure is opaque.

as the transparency equal to 0, the structure is transparent

also we could setup the


Poynting Row


vector color, and it's width

Cone Plot