Matlab Plot 和 Line区别

Matlab的Line函数与Plot函数在创建图形对象时有所不同。Line函数简单地在当前坐标轴上绘制线条,即使没有坐标轴或图形窗口也会创建。而Plot等高级函数则可能清除坐标轴或创建新窗口,并且在多次调用时会删除并重置轴属性。可通过HOLD命令或修改NextPlot属性来改变这种行为。
摘要由CSDN通过智能技术生成

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', 'Bi
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值