亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? legd_proc.m

?? MATLAB-GUI初學相關資料 包含一些小程序與word文檔ppt
?? M
?? 第 1 頁 / 共 2 頁
字號:
%legd_proc processing legends on a graphics window.
%
%   i_Legends=legd_proc(nTask,arg1)
%where 
%   nTask -- the code for legend processing.  Details can be found in the comments 
%            within the function
%   arg1 -- extra arguments used for certain nTask
%   i_Legends -- when used for get_legend, return handle
%
%The functions available in the module are
%
%  get_exact_point -- get the exact position
%  get_legnd -- get the handle of the specified object
%  set_text_prop -- set the properties of the text object
%  set_color_prop -- set the color of the text/line object
%  set_line_prop -- set the properties of the line object
%  plt_range_box -- display the plot range parameters dialog box
%

%Copyright (c) 1997-1999 by Professor Dingyu Xue
%School of Information Science and Engineering, Northeastern University
%Shenyang 110006, P R China
%Email: xue_dy@hotmail.com
%
%This module is used either with Graf_Tool or CtrlLAB.
%-----------------------------------------------------

function i_Legends=legd_proc(nTask,arg1)

h_legends=findobj('Tag','CtrlLABLegends');
if length(h_legends)==0,
   uu=get(gcf,'UserData'); g_graphs=gcf;
else
   uu_1=get(gcf,'UserData'); g_graphs=uu_1{2};
end

switch nTask
case 0, i_Legends=get_legnd(arg1);    
case 1, %enable the legend editting box to accept new legends
   [x,y]=ginput(1); set(gcf,'Units','normalized'); 
   xx=get(uu{2}(1),'Position'); xx(1:2)=get(gcf,'CurrentPoint'); 
   set(uu{2}(1),'Position',xx,'Visible','on','UserData',[x,y]);
case 2, %editting legends, add the current legend to edit box
   iLegends=get_legnd(nTask);
   if length(iLegends)>0
      set(uu{2}(1),'Visible','on'); str=get(iLegends,'String');
      xx=get(uu{2}(1),'Position'); xx(1:2)=get(gcf,'CurrentPoint'); 
      set(uu{2}(1),'String',str,'Position',xx); 
      uu{2}(3)=iLegends; set(g_graphs,'UserData',uu);
   end
case 3, %set legend moving enable functions
   iLegends=get_legnd(nTask);
   if length(iLegends)>0
      set(gcf,'Units','normalized','WindowButtonMotionFcn','legd_proc(11);',...
         'WindowButtonDownFcn','legd_proc(12);');
      uu{2}(3)=iLegends; set(g_graphs,'UserData',uu);
   end
case 4, %delete the legends to be selected
   iLegends=get_legnd(nTask);
   if length(iLegends)>0, delete(iLegends); end
case 5, %draw a line
   [x,y,button]=ginput(1);
   set(gcf,'Units','normalized','WindowButtonMotionFcn','legd_proc(19);',...
      'WindowButtonDownFcn','legd_proc(20,1);');
   h=line([x,x],[y,y]); uu{4}=[x,y,h]; set(gcf,'UserData',uu);
case {6,7}, %modify the properties of legends
   gg=get(h_legends,'UserData'); uu=get(gg{2},'UserData');
   if nTask==6, kk=uu{2}(3); 
   else, figure(gg{2}); kk=get(gca,'Children'); end
   for i=1:length(kk)
      if strcmp(get(kk(i),'Type'),'text') 
         if arg1==1, set_text_prop(kk(i)); end
      elseif (length(get(kk(i),'XData'))<=5&arg1==1)|(length(get(kk(i),'XData'))>5&arg1==2)   
         set_line_prop(kk(i));
      end   
      set_color_prop(kk(i));
   end
   close(h_legends);   
case 8, %draw arrows
   [x,y,button]=ginput(1);
   set(gcf,'Units','normalized','WindowButtonMotionFcn','legd_proc(19);',...
      'WindowButtonDownFcn','legd_proc(20,2);');
   h=line([x,x],[y,y]); uu{4}=[x,y,h]; set(gcf,'UserData',uu);
case 9, %delete all the legends
   close(h_legends); figure(g_graphs); hh=extra_funs(2,'axes'); ii=[];
   for i=1:length(hh)
      kk=get(hh(i),'Children'); 
      for j=1:length(kk)
         if strcmp(get(kk(j),'Type'),'line')
            if length(get(kk(j),'XData'))<=5, delete(kk(j)); end
         else, delete(kk(j)); end
      end   
   end   
case 10, %update legends
   hLegd=uu{2}(1); str=get(hLegd(1),'String'); set(hLegd(1),'Visible','off');
   if length(str)>0 & uu{2}(2)==1
      xy=get(uu{2}(1),'UserData'); x=xy(1); y=xy(2); 
      nCol=get(gca,'XColor'); [x,hh]=display_str(x,y,str,nCol);
   elseif uu{2}(2)==2, set(uu{2}(3),'String',str); end;
case 11, %move the legends to new position
   iLegends=uu{2}(3); [x,y]=get_exact_point;
   if strcmp(get(iLegends,'type'),'text')
      Pos=get(iLegends,'Position'); Pos(1)=x; Pos(2)=y; set(iLegends,'Position',Pos);
   else
      x0=get(iLegends,'XData'); y0=get(iLegends,'YData'); xx=get(gco,'UserData');
      dx=x-xx(1); dy=y-xx(2);
      set(iLegends,'XData',x0+dx,'YData',y0+dy); set(iLegends,'UserData',[x,y]);
   end   
case 12, %stop legend moving facilities
   set(g_graphs,'Units','pixels','WindowButtonMotionFcn','','WindowButtonDownFcn','');
case {13,22,30}, %show property dialog box     
   switch nTask
   case 13, iLegends=get_legnd(4);
   case 22, iLegends=get_legnd(5); 
   case 30, iLegends=get_legnd(6);
   end
   if length(iLegends)==0, break; end
   uu{2}(3)=iLegends(1); set(g_graphs,'UserData',uu);
   if length(iLegends)>0,
      g_type=get(iLegends(1),'Type');
      if strcmp(g_type,'line'), keyLine=1; keyText=0;   
      else, keyLine=0; keyText=1; end
   end   
   if length(h_legends)==0 & length(iLegends)>0
      h_legends=figure('Units','normalized','Position',[0.34 0.325 0.4125 0.275],...
         'NumberTitle','off','Name','Legend/Curve Properties',...
         'MenuBar','none','Color',0.8*[1,1,1],'Tag','CtrlLABLegends','Resize','off');         
      extra_funs(1);
      hFF(1)=uicontrol('Style','Pushbutton','String','Change',...
         'Units','normalized','Position',[0.8,0.8,0.18,0.14],'Callback','legd_proc(6,1);');
      hFF(9)=uicontrol('Style','Pushbutton','String','Change All',...
         'Units','normalized','Position',[0.53,0.8,0.25,0.14],'Callback','legd_proc(7,1);');
      if nTask==22
         set(hFF(1),'CallBack','legd_proc(6,2);'); set(hFF(9),'CallBack','legd_proc(7,2);');
      end
      hFF(10)=uicontrol('Style','Pushbutton','String','Delete All',...
         'Units','normalized','Position',[0.53,0.63,0.25,0.14],'Callback','legd_proc(9);');
      hFF(2)=uicontrol('Style','Pushbutton','String','Color','UserData',[],...
         'Units','normalized','Position',[0.8,0.63,0.18,0.14],'Callback','legd_proc(14);');
      hFF(3)=uicontrol('Style','Pushbutton','String','Font','UserData',[],...
         'Units','normalized','Position',[0.8,0.46,0.18,0.14],'Callback','legd_proc(15);',...
         'Enable',extra_funs(6,keyText));
      hFF(4)=uicontrol('Style','Pushbutton','String','Cancel',...
         'Units','normalized','Position',[0.8,0.29,0.18,0.14],'Callback','delete(gcf);');
      hFF(11)=uicontrol('Style','Pushbutton','String','Help',...
         'Units','normalized','Position',[0.8,0.12,0.18,0.14],'CallBack','clab_help(21);');
      [xL,hFF(5)]=display_str(0.04,0.93,'Select Line Type',[0,0,0],extra_funs(6,keyLine),9);
      hFF(6)=uicontrol('Style','Popupmenu','String',['Solid Line |Dash Line |Dotted Line |Dash-dotted Line'],...
         'Value',1,'UserData',[],'Visible',extra_funs(6,keyLine),...
         'Units','normalized','Position',[0.07,0.73,0.35,0.13],...
         'BackgroundColor',[1,1,1],'CallBack','legd_proc(16);');
      [xL,hFF(7)]=display_str(0.04,0.41,'Select Line Width',[0,0,0],extra_funs(6,keyLine),9);
      hFF(8)=uicontrol('Style','Popupmenu','String',['Thinner |Thicker'],...
         'Units','normalized','Position',[0.07,0.23,0.35,0.13],...
         'Value',1,'UserData',[],'Visible',extra_funs(6,keyLine),...
         'BackgroundColor',[1,1,1],'CallBack','legd_proc(17);');
      strMarker=str2mat('+ sign','o sign','* sign','. sign','x sign',...
         'square','diamond','v','^ sign','> sign','< sign',...
         'pentagram','hexagram','remove marker');
      [xL,hFF(14)]=display_str(0.04,0.67,'Select Marker Style',...
         [0,0,0],extra_funs(6,keyLine),9);
      hFF(15)=uicontrol('Style','Popupmenu','String',strMarker,...
         'Units','normalized','Position',[0.07,0.48,0.35,0.13],...
         'Value',1,'UserData',[],'Visible',extra_funs(6,keyLine),...
         'BackgroundColor',[1,1,1],'CallBack','legd_proc(21);');
      [x,hFF(12)]=display_str(0.04,0.10,'Angle for Rotation',[0,0,0],extra_funs(6,keyText),9);
      if keyText==1, strAngle=get(uu{2}(3),'Rotation'); 
      else, strAngle=0; end
      hFF(13)=uicontrol('Style','Edit','String',num2str(strAngle),...
         'Units','normalized','Position',[0.42,0.05,0.18,0.12],...
         'HorizontalAlignment','left','BackgroundColor',[1,1,1],'Visible',extra_funs(6,keyText));
      set(h_legends,'UserData',{hFF,g_graphs}); 
   else, figure(h_legends); end
case 14, %select new color
   gg=get(h_legends,'UserData'); nCol=uisetcolor; set(gg{1}(2),'UserData',nCol);
case 15, %select a new font
   gg=get(h_legends,'UserData'); hFont=uisetfont; set(gg{1}(3),'UserData',hFont);
case 16, %set line style
   gg=get(h_legends,'UserData'); set(gg{1}(6),'UserData',1);
case 17, %set line width
   gg=get(h_legends,'UserData'); set(gg{1}(8),'UserData',1);
case 18, %show cursor
   [x0,y0,but0]=get_legnd(1); 
   if but0==1,
      x=get(gco,'XData'); y=get(gco,'YData');
      cc=(x-x0).^2+(y-y0).^2; [cc,i]=min(cc); ux=get(gco,'UserData'); 
      if length(ux)==0
         x0=x(i); y0=y(i); str=[' (' num2str(x0), ',', num2str(y0) ')'];
      else
         uu=get(gcf,'UserData'); iplot=uu{4};
         switch iplot
         case {2,4}, x0=x(i); y0=y(i); str=['  \omega=' num2str(ux(i))];
         case 5, x0=x(i); y0=y(i); str=['  K=' num2str(ux(i))];
         otherwise, x0=x(i); y0=y(i); str=[' (' num2str(x0), ',', num2str(y0) ')'];
         end            
      end   
      h1=line(x0,y0); set(h1,'Marker','o'); h2=text(x0,y0,str); 
      set([h1,h2],'Color',get(gca,'XColor'));
   end
case 19, %set line drawing
   uu=get(g_graphs,'UserData'); x=uu{4}(1); y=uu{4}(2);
   uu=get(gcf,'UserData'); [x1,y1]=get_exact_point;
   set(uu{4}(3),'XData',[uu{4}(1),x1],'YData',[uu{4}(2),y1]);
case 20, %stop line drawing
   set(g_graphs,'WindowButtonMotionFcn','','WindowButtonDownFcn','');
   if arg1==2    
      uu=get(gcf,'UserData'); [x_e,y_e]=get_exact_point;
      nXAxis=get(gca,'XLim'); nYAxis=get(gca,'YLim');
      x=[uu{4}(1),x_e]; y=[uu{4}(2),y_e]; p1=pi/9; w=0.02; 
      x1=(x-nXAxis(1))/diff(nXAxis); y1=(y-nYAxis(1))/diff(nYAxis);
      theta=atan2(diff(y1),diff(x1)); theta=[theta+p1,theta-p1];
      x2=x1(2)-w*cos(theta); y2=y1(2)-w*sin(theta);
      x2=nXAxis(1)+x2*diff(nXAxis); y2=nYAxis(1)+y2*diff(nYAxis);
      xx1=[x, x2(1) x(2),x2(2)]; yy1=[y, y2(1),y(2),y2(2)]; 
      set(uu{4}(3),'XData',xx1,'YData',yy1);
   end
   set(uu{4}(3),'Color',get(gca,'XColor')); set(g_graphs,'Units','pixels');
case 21, gg=get(h_legends,'UserData'); set(gg{1}(15),'UserData',1);
case 23,
   iLegends=get_legnd(4);
   if length(iLegends)>0, nCol=uisetcolor; set(iLegends,'Color',nCol); end   
case 24, %call sub function to show a dialog box for plot range
   plt_range_box;
case 25
   g_main=findobj('Tag','CtrlLABMain'); uu0=get(gcf,'UserData'); nPlot=uu0{4};
   hRng=uu0{2}; uu=get(g_main,'UserData');
   x1=eval(get(hRng(2),'String')); x2=eval(get(hRng(4),'String'));
   n_points=eval(get(hRng(6),'String')); key_sim=0;
   if strcmp(get(hRng(7),'Enable'),'on'), key_sim=get(hRng(7),'Value'); end
   key_dly=0;
   if strcmp(get(hRng(8),'Enable'),'on'), key_dly=get(hRng(8),'Value'); end
   close(gcf); uu{10}=[x1,x2,n_points,key_sim,nPlot,key_dly]; 
   set(g_main,'UserData',uu); sys_analysis(nPlot);
case 26,
   iLegends=get_legnd(6);
   if length(iLegends)>0, nCol=uisetcolor; set(iLegends,'Color',nCol); end   
end
   
if nTask~=25

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产一区二区a毛片| 久久久精品蜜桃| 亚洲一区影音先锋| av资源网一区| 亚洲人成亚洲人成在线观看图片| 韩国一区二区三区| 欧美激情一区二区三区全黄| fc2成人免费人成在线观看播放 | 高清国产一区二区三区| 欧美精品一区视频| 91同城在线观看| 久久精品国产网站| 亚洲激情在线播放| 欧美一级二级三级乱码| 成人开心网精品视频| 日日欢夜夜爽一区| 国产精品美女久久久久av爽李琼 | 欧美日韩一区小说| 国产一区亚洲一区| 视频在线观看91| 国产精品久久久久一区| 欧美美女喷水视频| jlzzjlzz亚洲日本少妇| 日韩av电影天堂| 亚洲一区国产视频| 亚洲精品成人少妇| 国产精品美女久久久久aⅴ| 日韩欧美三级在线| 欧美日韩亚洲另类| 欧美三级中文字幕在线观看| 成人免费毛片aaaaa**| 国产精品综合久久| 国产一区二区三区精品视频| 午夜一区二区三区视频| 亚洲综合图片区| 五月激情丁香一区二区三区| 亚洲精品免费视频| 一区二区三区四区高清精品免费观看 | 日韩av在线免费观看不卡| 夜夜嗨av一区二区三区中文字幕 | 亚洲欧美日韩系列| 国产精品1区2区3区在线观看| 精品少妇一区二区三区日产乱码 | 亚洲欧美日韩国产一区二区三区 | www国产精品av| 欧美老女人第四色| 欧美v日韩v国产v| 国产日韩欧美精品综合| 亚洲日本一区二区三区| 亚洲gay无套男同| 蜜桃久久久久久| 盗摄精品av一区二区三区| 99久久婷婷国产综合精品| 欧美影视一区在线| 欧美videossexotv100| 国产精品毛片久久久久久久| 亚洲午夜免费电影| 国产激情一区二区三区四区| 色噜噜夜夜夜综合网| 日韩女优制服丝袜电影| 一区二区三区日韩欧美| 国产99久久久国产精品潘金| 91高清视频在线| 久久亚洲影视婷婷| 亚洲免费伊人电影| 国产专区欧美精品| 欧美日韩另类一区| 亚洲黄色av一区| 99re这里只有精品6| 国产精品无人区| 国产精品一区专区| 精品剧情在线观看| 久久不见久久见免费视频1| 欧美日韩亚洲综合在线| 亚洲品质自拍视频| 色综合色狠狠天天综合色| 欧美韩国日本综合| 国产又粗又猛又爽又黄91精品| 91精品国产欧美一区二区| 一区二区三区四区在线| 色欧美片视频在线观看在线视频| 国产亚洲一区字幕| 东方欧美亚洲色图在线| 国产精品白丝在线| 91在线观看污| 一区二区日韩av| 欧美丰满少妇xxxbbb| 国产综合色在线| 1区2区3区精品视频| 欧美系列日韩一区| 国产一本一道久久香蕉| 国产婷婷色一区二区三区四区| 亚洲高清在线视频| 欧美伊人久久大香线蕉综合69| 亚洲一卡二卡三卡四卡无卡久久| 欧美男人的天堂一二区| 国产乱码一区二区三区| 国产精品国产三级国产aⅴ中文| 欧美性大战久久| www.欧美亚洲| 久久综合综合久久综合| 天天综合日日夜夜精品| 欧美一区日韩一区| 不卡一区二区三区四区| 国产精品系列在线| 日韩女同互慰一区二区| www.成人网.com| 国内精品在线播放| 亚洲成人黄色影院| 国产精品久久久久久亚洲伦| 欧美日韩电影在线| 色就色 综合激情| 91美女在线看| av亚洲精华国产精华精| 国产精品影视在线观看| 精品在线观看视频| 蜜桃一区二区三区四区| 丝袜诱惑亚洲看片| 一区二区三区国产| 亚洲一二三四在线| 亚洲午夜视频在线| 日韩精品亚洲一区二区三区免费| 综合激情成人伊人| 国产精品传媒视频| 亚洲精品视频在线| 一区二区三区国产豹纹内裤在线 | 欧美午夜一区二区三区 | 91在线高清观看| 91麻豆福利精品推荐| 99精品视频在线观看免费| 波多野结衣亚洲| 91国产视频在线观看| 在线不卡免费av| 国产亚洲制服色| 亚洲网友自拍偷拍| 美国十次综合导航| 成人一级视频在线观看| 色噜噜久久综合| 精品国产免费视频| 日韩一区中文字幕| 日本va欧美va欧美va精品| 久久成人精品无人区| 国产福利不卡视频| 欧美无乱码久久久免费午夜一区| 4438x成人网最大色成网站| 欧美激情一区二区三区蜜桃视频| 亚洲一线二线三线视频| 成人深夜在线观看| 欧美xxxxx裸体时装秀| 亚洲中国最大av网站| 国产一区二区三区视频在线播放| 欧美最猛性xxxxx直播| 国产精品天美传媒| 激情图片小说一区| 欧美高清视频www夜色资源网| 中文字幕精品一区| 国产一区日韩二区欧美三区| 日韩欧美在线网站| 天堂资源在线中文精品| 欧美视频一区二区三区在线观看 | 色综合久久中文字幕| 最近日韩中文字幕| 国产.欧美.日韩| 国产精品久久久久久亚洲伦| 大胆亚洲人体视频| 国产精品少妇自拍| 色域天天综合网| 亚洲成a人v欧美综合天堂下载 | 日本伊人色综合网| 久久综合国产精品| 成人午夜电影久久影院| 日韩欧美一区二区不卡| 国产精品美女久久久久高潮| 经典三级在线一区| 久久女同互慰一区二区三区| 国产精品影视在线| 亚洲色大成网站www久久九九| 91精彩视频在线观看| 日本中文字幕不卡| 国产精品久线观看视频| 欧美三区免费完整视频在线观看| 男人的天堂亚洲一区| 国产嫩草影院久久久久| 欧美丝袜丝交足nylons图片| 秋霞成人午夜伦在线观看| 久久久久久久久久久99999| 色婷婷综合久久久中文字幕| 韩国理伦片一区二区三区在线播放| 国产精品三级av在线播放| 欧美日韩视频在线一区二区| 成人国产亚洲欧美成人综合网| 天天亚洲美女在线视频| 又紧又大又爽精品一区二区| 精品播放一区二区| 日韩一级视频免费观看在线| 在线影院国内精品| 在线观看日韩电影| 色综合久久中文字幕综合网| 亚洲人成小说网站色在线| 久久免费看少妇高潮|