²é¿´: 3783  |  »Ø¸´: 0

bucheron

½ð³æ (СÓÐÃûÆø)

[½»Á÷] ÔõÑùÔÚͬһ¸öͼÖл­Á½¸öµÈ¸ßÏßͼ£¿

Ä¿µÄ£º ´æÔÚÁ½×éµÈ¸ßÏߣ¬Á½×éµÈ¸ßÏßÓн»¼¯¡£½«Á½¸öµÈ¸ßÏß»­ÔÚͬһ¸öͼÖУ¬Ã¿×éµÈ¸ßÏßʹÓò»Í¬µÄcolormap£¬ Á½×éµÈ¸ßÏߵĽ»¼¯Ó¦¸ÃÊÇÁ½×éÑÕÉ«µÄÖØµþ¡£

ʵÏÖ·½·¨Ò»

ʹÓÃcontour£¬²»ÓÃÌî³äÑÕÉ«µÄcontourf£¬ÒÔ±ãµÚ¶þ×éµÈ¸ßÏß²»»á¸²¸ÇסµÚÒ»×éµÄ½»¼¯²¿·Ö¡£Ê¹ÓÃÀýÈçcolormap([cool(64);gray(64)])ÃüÁ½«colormap±ä³ÉÁ½ÖÖÉ«²Ê¼¯µÄºÏ²¢¡£


Àý×Ó1

clear all % clear all the data in the workspace
close all % close all the current figures
clc % clear the command window
%-----------------------------
% generate the data
[X,Y,Z1] = peaks(64); % X,Y,Z data of the first group
Z2=X.^2+Y.^2; % Z data of the second group
%%
% first method
% use two axes in the same figure
% set the figure's properties
h=figure
scrsz = get(0,'ScreenSize');
set(h,'Position',[scrsz(4).*(1/8) scrsz(4).*(1/20) scrsz(3)*3/5 scrsz(4).*(4/5)])
%--------------------------------------------------------------------------
% the first axes
hAxes(1)=axes('Unit','pixels','position',[100 100 400 400]);
%--------
% combine two colormap in the same one, here we use 'jet' and 'gray'
colormap([jet(64);gray(64)])
% the jet color will be used two index the first contour and the gray will
% be used for the second one.
%--------
[c1,h1] = contour(X(1,,Y(:,1),Z1); % plot the first contour
set(h1,'ShowText','on')
cmin1=min(Z1();
cmax1=max(Z1();
% use caxis to set the limit of the colorbar, the first one will occupy the
% low half one
caxis(hAxes(1),[cmin1,2*cmax1-cmin1])
% then define the axis
set(hAxes(1),'YColor','k','Box','on');
set(hAxes(1),'FontName','Helvetica','FontSize',20,'LineWidth',1)
xlabel(hAxes(1),'$ X $ [-]','Color','k','Interpreter','LaTex','FontSize',20);
ylabel(hAxes(1),'$ Y $ [-]','Color','k','Interpreter','LaTex','FontSize',20);
set(hAxes(1),'xlim',[min(X(1,), max(X(1,)],'YAxisLocation','left','Color','w');
set(hAxes(1),'ylim',[min(Y(:,1)), max(Y(:,1))]);
%--------------------------------------------------------------------------
% the second axes
hAxes(2)=axes('Unit','pixels','position',get(hAxes(1),'position'));
[c2,h2] = contour(X(1,,Y(:,1),Z2); % plot the second contour
cmin2=min(Z2();
cmax2=max(Z2();
% use caxis to set the limit of the colorbar, the second one will occupy the
% higher half one
caxis(hAxes(2),[2*cmin2-cmax2,cmax2])
set(hAxes(2),'visible', 'off') % the the visable of axes 2 off

ʵÏÖ·½·¨¶þ
Ô­ÔòÉÏÀ´Ëµ£¬ÔÚÒ»¸öfigureÖÐÖ»ÄÜʹÓÃÒ»ÖÖcolormap£¬ËùÒÔÈç¹û²»ÏñµÚÒ»ÖÖ·½·¨¶¨Òåcolorbar£¬Á½×éµÈ¸ßÏßµÄÉ«µ÷ÊÇÒ»ÑùµÄ¡£½â¾öÕâ¸öÎÊÌâ¿ÉÒÔ²ÉÓÃfreezecolor·½·¨£¬¼´µÚÒ»¸öcontour²ÉÓÃÒ»ÖÐcolormap£¬È»ºófreeze£¬ ¶ÔµÚ¶þ¸öcontour²ÉÓÃÁíÍâÒ»¸öcolormap£¬Ò²freeze¡£
¾ßÌå¿ÉÒԲο¼
http://ycc.math.fju.edu.tw/research/biology/b2012fMRI/fMRICODE/simtb_v18/simtb_v18/display/freezeColors/demo/html/freezeColors_pub.html
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

Born to suffer !Born to burn!
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ÖÇÄÜ»úÆ÷ÈË

Robot (super robot)

ÎÒÃǶ¼°®Ð¡Ä¾³æ

ÕÒµ½Ò»Ð©Ïà¹ØµÄ¾«»ªÌû×Ó£¬Ï£ÍûÓÐÓÃŶ~

¿ÆÑдÓСľ³æ¿ªÊ¼£¬ÈËÈËΪÎÒ£¬ÎÒΪÈËÈË
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ bucheron µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 294Çóµ÷¼Á²ÄÁÏÓ뻯¹¤×¨Ë¶ +5 ݤÎÉ­ÁÖ 2026-03-18 5/250 2026-03-18 22:18 by bingxueer79
[¿¼ÑÐ] 085600²ÄÁÏÓ뻯¹¤µ÷¼Á 324·Ö +8 llllkkkhh 2026-03-18 8/400 2026-03-18 21:01 by Catalysis25
[¿¼ÑÐ] Ò»Ö¾Ô¸Ìì½ò´óѧ»¯Ñ§¹¤ÒÕרҵ£¨081702£©315·ÖÇóµ÷¼Á +10 yangfz 2026-03-17 10/500 2026-03-18 20:14 by walc
[¿¼ÑÐ] 070303Ò»Ö¾Ô¸Î÷±±´óѧѧ˶310ÕÒµ÷¼Á +6 dÈçÔ¸Éϰ¶ 2026-03-12 9/450 2026-03-18 19:50 by macy2011
[¿¼ÑÐ] 0703»¯Ñ§µ÷¼Á£¬Çó¸÷λÀÏʦÊÕÁô +9 ÇïÓÐľ±± 2026-03-14 9/450 2026-03-18 19:49 by macy2011
[¿¼ÑÐ] 286Çóµ÷¼Á +6 lemonzzn 2026-03-16 9/450 2026-03-18 15:31 by vgtyfty
[¿¼ÑÐ] 314Çóµ÷¼Á +8 ÎÞи¿É»÷µÄ¾ÞÈË 2026-03-12 8/400 2026-03-18 14:50 by haxia
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷ÄϽ»´ó£¬Çóµ÷¼Á +4 ²Ä»¯ÖðÃÎÈË 2026-03-18 4/200 2026-03-18 14:22 by 007_lilei
[¿¼ÑÐ] 0703»¯Ñ§µ÷¼Á +4 pupcoco 2026-03-17 7/350 2026-03-18 12:14 by djl2006
[¿¼ÑÐ] 299Çóµ÷¼Á +5 ¡÷С͸Ã÷* 2026-03-17 5/250 2026-03-18 11:49 by ¾¡Ë´Ò¢1
[¿¼ÑÐ] ÉúÎïѧ071000 329·ÖÇóµ÷¼Á +3 ÎÒ°®ÉúÎïÉúÎﰮΠ2026-03-17 3/150 2026-03-18 10:12 by macy2011
[¿¼ÑÐ] 277µ÷¼Á +5 ×ÔÓɼå±ý¹û×Ó 2026-03-16 6/300 2026-03-17 19:26 by Àîleezz
[¿¼ÑÐ] 0854¿ØÖƹ¤³Ì 359Çóµ÷¼Á ¿É¿çרҵ +3 626776879 2026-03-14 9/450 2026-03-16 17:42 by 626776879
[¿¼ÑÐ] 0703 ÎïÀí»¯Ñ§µ÷¼Á +3 ÎÒ¿ÉÒÔÉϰ¶µÄ¶Ô 2026-03-13 5/250 2026-03-16 10:50 by ÎÒ¿ÉÒÔÉϰ¶µÄ¶ÔÂ
[¿¼ÑÐ] 265Çóµ÷¼Á +4 Íþ»¯±ý07 2026-03-12 4/200 2026-03-14 17:23 by userper
[¿¼ÑÐ] 328Çóµ÷¼Á +3 5201314Lsy£¡ 2026-03-13 6/300 2026-03-14 15:31 by hyswxzs
[¿¼ÑÐ] 304Çóµ÷¼Á +6 Mochaaaa 2026-03-12 7/350 2026-03-13 22:18 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] Çóµ÷¼Á +3 ³ÌÓ꺼 2026-03-12 3/150 2026-03-13 15:06 by JourneyLucky
[¿¼ÑÐ] 0817»¯Ñ§¹¤³ÌÓë¼¼Êõ¿¼ÑÐ312·Öµ÷¼Á +3 T123 tt 2026-03-12 3/150 2026-03-13 10:49 by houyaoxu
[¿¼ÑÐ] 321Çóµ÷¼Á£¨Ê³Æ·/ר˶£© +3 xc321 2026-03-12 6/300 2026-03-13 08:45 by xc321
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û