当前位置: 首页 > news >正文

jsp网站开发实例视频教程帝国和WordPress比较

jsp网站开发实例视频教程,帝国和WordPress比较,丽水网站开发,新手做网站免费教程文章目录前言#xff1a;图形对象#xff1a;图形句柄#xff1a;图形对象的属性#xff1a;对象的基本操作figure对象(图形窗口)figure()函数#xff1a;clf()函数清空当前图形窗口#xff1a;axes坐标轴对象image()line()text()前言#xff1a; 下面这些是为了更好地… 文章目录前言图形对象图形句柄图形对象的属性对象的基本操作figure对象(图形窗口)figure()函数clf()函数清空当前图形窗口axes坐标轴对象image()line()text()前言 下面这些是为了更好地写回调函数。例子我后面会整出来都是可以在gui里面整的非常强先罗列一下基本知识及定义。 图形对象 Matlab中把用于数据可视化和界面制作的基本绘图要素称为图形对象。每一个具体的图形都是由若干不同的图形对象构成。 图形句柄 matlab在创建每一个图形对象时都为该对象分配唯一的一个值 称其为图形对象句柄。句柄是图形对象的唯一标识符不同对象的句柄不可 能重复和混淆 计算机屏幕作为根对象(root)由 系统自动建立,其句柄值为0。而图形窗口对象(figure)的句柄值为一正整数并显示在该窗口的标题栏。其他图形对象的句柄为浮点数。 MATLAB在创建各种对象时会产生该对象的句柄通过句柄可以实现对该对象的各种控制和设置 MATLAB提供了若干个函数用于获取已有图形对象的句柄。 图形对象的属性 图形对象的属性是 一些特殊值可以对图形对象进行控制和设置。每个属性都有一个属性名和属性值。 属性名通常是采用大小写字母组成的字符串第一个字母大写。但是在MATLAB中图形对象的属性名不区分大小写。 用户可以在创建图形对象时对属性值进行设置。如果用户没有对属性值进行设置则所有的属性都会自动初始化为系统的默认值。例如figure(‘Toolbar’,‘none’,‘Menubar’‘none’),将创建没有工具栏和菜单的图形窗口。 图形对象的属性非常多通常在创建图形对象后通过句柄对属性值进行修改。利用函数ge()获取图形对象的属性值通过函数set()设置图形对象的属性值。 对象的基本操作 获取当前图形对象的函数 函数说明gcf()获取当前图形窗口的句柄gca()获取当前图形窗口中坐标轴的句柄gco()获取当前图形窗口中当前对象的句柄gcbf()获取正在执行的回调程序对应的对象所在窗口的句柄gcbo()获取正在执行的回调程序对应的图像句柄 除了get()和set()获取和设置图形对象的属性之外还可以有其他操作 函数说明reset()对象的复位恢复为默认值findobj()对象的查找findall()查找所有对象包括隐藏的对象copyobj()对象的复制delete()对象的删除allchild()查找所有的子对象ancestor()查找对象的父对象 figure对象(图形窗口) figure()函数 Syntax figure figure(PropertyName,propertyvalue,...) figure(h) h figure(...)Description figure creates a new figure window using default property values. This new figure window becomes the current figure, and it displays on top of all other figures on the screen. The title of the figure is an integer value that is not already used by an existing figure. MATLAB® saves this integer value in the figure’s Number property. figure(‘PropertyName’,propertyvalue,…) creates a new figure window using specific property values. For a list of available properties, see Figure Properties. MATLAB uses default values for any properties that you do not explicitly define as arguments. 创建属性为PropertyName值为propertyvalue的图形窗口 figure(h) does one of the following: If h is the handle or the Number property value of an existing figure, then figure(h) makes that existing figure the current figure, makes it visible, and moves it on top of all other figures on the screen. The current figure is the target for graphics output. If h is not the handle and is not the Number property value of an existing figure, but is an integer, then figure(h) creates a figure object and assigns its Number property the value h. If h is not the handle to a figure and is not a positive integer, then MATLAB returns an error. h figure(…) returns the handle to the figure object. clf()函数清空当前图形窗口 只是清空而不关闭如果关闭图形窗口采用close(). close all关闭所有 Syntax clf clf(reset) clf(fig) clf(fig,reset) figure_handle clf(...)Description clf deletes from the current figure all graphics objects whose handles are not hidden (i.e., their HandleVisibility property is set to on). clf(‘reset’) deletes from the current figure all graphics objects regardless of the setting of their HandleVisibility property and resets all figure properties except Position, Units, PaperPosition, and PaperUnits to their default values. clf(fig) or clf(fig,‘reset’) clears the single figure with handle fig. 清除窗口fig中所有不隐藏的对象 figure_handle clf(…) returns the handle of the figure. This is useful when the figure IntegerHandle property is off because the noninteger handle becomes invalid when the reset option is used (i.e., IntegerHandle is reset to on, which is the default). 例子 figure; t-pi:pi/20:pi; plot(t,cos(t),r);%绘制曲线 pause(3); clf(gcf);%清空图形窗口内容 pause(3); close(gcf);%关闭图形窗口axes坐标轴对象 Syntax axes axes(PropertyName,propertyvalue,...) axes(parent,...) axes(h) h axes(...)Description axes creates an axes graphics object in the current figure using default property values. axes is the low-level function for creating axes graphics objects. MATLAB® automatically creates an axes, if one does not already exist, when you issue a command that creates a graph. axes(‘PropertyName’,propertyvalue,…) creates an axes object having the specified property values. For a description of the properties, see Axes Properties. MATLAB uses default values for any properties that you do not explicitly define as arguments. The axes function accepts property name/property value pairs, structure arrays, and cell arrays as input arguments (see the set and get commands for examples of how to specify these data types). While the basic purpose of an axes object is to provide a coordinate system for plotted data, axes properties provide considerable control over the way MATLAB displays data. axes(parent,…) creates the axes in the figure, uipanel, or uitab specified by parent, instead of in the current figure. axes(h) makes existing axes h the current axes and brings the figure containing it into focus. It also makes h the first axes listed in the figure’s Children property and sets the figure’s CurrentAxes property to h. The current axes is the target for functions that draw image, line, patch, rectangle, surface, and text graphics objects. If you want to make an axes the current axes without changing the state of the parent figure, set the CurrentAxes property of the figure containing the axes: set(figure_handle,‘CurrentAxes’,axes_handle) This command is useful if you want a figure to remain minimized or stacked below other figures, but want to specify the current axes. h axes(…) returns the handle of the created axes object. Use the set function to modify the properties of an existing axes or the get function to query the current values of axes properties. Use the gca command to obtain the handle of the current axes. The axis (not axes) function provides simplified access to commonly used properties that control the scaling and appearance of axes. Set default axes properties on the figure and root levels: set(groot,‘DefaultAxesPropertyName’,PropertyValue,…) set(gcf,‘DefaultAxesPropertyName’,PropertyValue,…) PropertyName is the name of the axes property and PropertyValue is the value you are specifying. Use set and get to access axes properties. 利用函数gca可以获取当前坐标轴的句柄因此利用get(gca)可获取当前坐标轴的属性。通过函数set(gca,‘PropertyName’,‘PropertyValue’)可以对坐标轴的属性进行设置 例子 figure; haxes; set(h,Color,[1 0 0]); set(h,Units,Centimeters);image() clear all; close all; Aimread(C:\Users\***\Desktop\dogg.png,png); Aim2double(A); himage(A);%高级调用 set(gca,xlim,[0 500],ylim,[0 400]); get(h,type);clear all; close all; Aimread(C:\Users\***\Desktop\dogg.png,png); Aim2double(A); himage(CData,A);%采用CData属性进行图像显示 set(gca,xlim,[0 500],ylim,[0 400]); get(h,type);加一个set(gca,‘ydir’,‘reverse’)可将坐标轴y轴反向从而使两幅图相同 line() 为了方便我直接做成表格了 SyntaxDescriptionlineline(X,Y)绘制二维曲线line(X,Y,Z)绘制三维曲线line(X,Y,Z,‘PropertyName’,propertyvalue,…)对线条对象的属性进行设置line(‘XData’,x,‘YData’,y,‘ZData’,z,…)line(ax,…)h line(…)返回线条对象的句柄 例子 clear all; close all; t0:pi/20:pi; xsin(t); ycos(t); zsin(t).*cos(t); hline(x,y,z);%线条对象 set(h,LineWidth,2,color,[1 0 0]);%设置属性值 view(3);%改变视角 set(gca,xgrid,on,ygrid,on,zgrid,on);%设置网格 set(gcf,position,[200,200,400,400]);%设置图形窗口位置和大小此外还可通过LineStyle设置线条类型Marker设置数据点的标记类型Markersize设置标记点的大小 结果 text() SyntaxDescriptiontext(x,y,str)在当前坐标轴中的位置(x,y)显示字符串stringtext(x,y,z,str)在三维坐标轴中的位置(x,y,z)显示字符串stringtext(___,Name,Value)对文本对象的属性进行设置text(ax,___)t text(___)返回text文本对象的句柄 例子 clear all; close all; h1text(0.3,0.5,hi,my friend); set(h1,Color,[1 0 0]); h2text(0.5,0.8,hi,my friend); set(h2,FontSize,14); set(h2,BackgroundColor,[0 1 0]); h3text(0.6,0.1,hi,my friend,FontSize,13); set(h3,rotation,90);
http://www.huolong8.cn/news/247792/

相关文章:

  • 南通网站建设报价设计师个人作品展示网站
  • 网站推广的具体方案设计一套网站费用
  • 企业网站的主要类型手机电商网站 模板
  • swiper做的网站wordpress安装脚本打不开
  • 北流市建设局网站wordpress价格计算
  • 四川 网站建设android手机app开发
  • 南山网站建设 信科网络wordpress discuz 织梦
  • wordpress 子域名建站wordpress 怎么置顶
  • 更改网站备案dw做的网站如何使用
  • 蚌埠专业制作网站的公司wordpress 身份认证api
  • 一个网站开发项目小组成员汉口网站建设
  • 怎么做类似返利网的网站潍坊建设网站的公司
  • 河北建设工程网站网站建设进什么科目
  • 常平做网站学校门户网站模板
  • 建设一个商业网站费用wordpress在分类内下一页
  • 青岛网站建设康之迅江苏越润建设有限公司网站
  • 慈溪做网站公司专业seo优化推广
  • 网站开发项目流程廊坊百度提升优化
  • 永久免费网站怎么建sem工具是什么
  • 网站建设行微信小程序卖货怎么做
  • 新建网站如何调试长沙官网seo推广
  • 唐河企业网站制作哪家好学网站开发的书
  • 网站制作哪家好清远seo
  • 网站建设外文版要求上海网站改版服务
  • 五屏网站建设哪家有彩页设计培训
  • 商城网站主机网站及其建设的心得体会
  • 杭州亚运村建设指挥部网站南宁建站服务
  • 移动端网站模板赣州市建设工程造价管理网站
  • 思途智旅游网站开发浙江微信网站建设
  • 个人网站建设简历十大社交电商平台排名