创建原始行
线(x,y)
线(X,,,,y,,,,z)
line
line('xdata',x,'ydata',y)
line('xdata',x,'ydata',y,'zdata',z)
线(___,,,,名称,价值)
线(斧头,___)
pl =线(___)
line
draws a line from the point(0,0)
to(1,1)
使用默认属性设置。
线(___,,,,
modifies the appearance of the line using one or more name-value argument pairs. For example,名称,价值
)'LineWidth',3
放s the line width to3
点。在所有其他输入参数之后,指定名称值对。
线(
在指定的轴上创建线路斧头
,,,,___)斧头
而不是在当前轴(gca
)。Specify斧头
作为第一个输入参数。
returns all primitivepl
= line(___)线
创建的对象。采用pl
修改特定的属性线
目的after it is created. For a list, see线Properties。
不像阴谋
功能,theline
功能不调用newplot
before plotting and does not respect the value of theNextPlot
property for the figure or axes. It simply adds the line to the current axes without deleting other graphics objects or resetting axes properties. However, some axes properties, such as the axis limits, can update to accommodate the line.