Matlab Plot 和 Line区别
来源:互联网 发布:淘宝网店模板 编辑:程序博客网 时间:2024/06/03 13:05
Many MATLAB graphics functions call the object creation functions to draw graphics objects. However, high-level routines also clear the axes or create a new figure, depending on the settings of the axes and figure NextPlot
properties.
Matlab图像函数请求对象创建函数画图像对象,但是,高级函数往往同时清除坐标轴或创建一幅新图像,取决于坐标轴的设置和图像的NextPlot属性。
In contrast, core object creation functions simply create their respective graphics objects and place them in the current parent object. They do not respect the settings of the figure or axes NextPlot
property.
相反地,核心对象创建函数只创建它们各自的图像对象,把他们放在现有的父对象中,他们不管图像的设置或坐标轴的属性。
For example, if you call the line
function,举例,如果请求Line 函数
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">line</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">(</span><span class="str" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">'XData'</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">x</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span class="str" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">'YData'</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">y</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span class="str" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">'ZData'</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">z</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span class="str" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">'Color'</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span class="str" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">'r'</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">)</span></code>
MATLAB draws a red line in the current axes using the specified data values. If there is no axes, MATLAB creates one. If there is no figure window in which to create the axes, MATLAB creates it as well.
Matlab用给出的数据在现有的坐标系中画一条红色的线。如果还没有坐标轴,会创建一个。如果甚至还没有图像窗口,也会创建一个。
If you call the line
function a second time, MATLAB draws the second line in the current axes without erasing the first line. This behavior is different from high-level functions like plot
that delete graphics objects and reset all axes properties (except Position
and Units
). You can change the behavior of high-level functions by using the hold
command or by changing the setting of the axes NextPlot
property.
但是!如果你再次请求line函数,MATLAB 在现有的坐标中画一条线,并不会擦除我们刚才画的那条。这与高级函数不同,如plot一样的高级函数,如果我们第二次请求,PLOT 会删除刚才的图像,重置坐标属性(除了Position和Units)。 你可以通过HOLD命令或改变坐标的NEXTPLOT属性设置来改变高级函数的这一行为。
- Matlab Plot 和 Line区别
- matlab通过两点画线问题&&plot,line的用法和区别。
- plot 和 stem matlab
- Matlab中plot、fplot、ezplot的使用方法和区别
- Matlab中plot、fplot、ezplot的使用方法和区别
- Matlab中plot、fplot、ezplot的使用方法和区别
- Matlab plot、fplot、ezplot三者区别
- MATLAB PLOT
- Matlab plot
- matlab plot
- 【matlab】plot
- matlab plot
- matlab plot
- matlab plot
- matlab plot函数画线,线型和颜色
- Matlab的plot~各种颜色和线形
- matlab gui(二)对象(axes,line[ezplot,plot],回调函数的写法)
- Matlab plot 参数设置Matlab plot 参数设置
- IO-08 输出倒三角图案(5)
- Android 下拉刷新控件SwipeRefreshLayout 的使用
- android开发扩大CheckBox点击监听范围
- android启动时报错Unable to instantiate application xxxx
- iOS 在UILabel显示不同的字体和颜色(转)
- Matlab Plot 和 Line区别
- C#面向对象设计模式纵横谈1
- Unity3D最新面试高频问答题目
- 实时监听输入框值变化的完美方案:oninput & onpropertychange
- struts2提交多个对象带图片
- C++——字符串的拼接
- linux笔记:构建根文件系统
- C#设计模式总结
- [转载]开源项目Philm的MVP架构分析