The plot Function in matlab
Posted 淘淘麻麻
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The plot Function in matlab相关的知识,希望对你有一定的参考价值。
from http://pundit.pratt.duke.edu/wiki/MATLAB:Plotting
The plot
Function
The plot
function is used to plot sets of data on a 2-D grid. What follows comes from MATLAB‘s help
function in MATLAB R2009a[1] (some paragraphs have been snipped out). The line styles, symbols, and colors are formatted as a clearer table.
PLOT Linear plot. PLOT(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If X is a scalar and Y is a vector, disconnected line objects are created and plotted as discrete points vertically at X. PLOT(Y) plots the columns of Y versus their index. If Y is complex, PLOT(Y) is equivalent to PLOT(real(Y),imag(Y)). In all other uses of PLOT, the imaginary part is ignored. Various line types, plot symbols and colors may be obtained with PLOT(X,Y,S) where S is a character string made from one element from any or all the following 3 columns:
|
|
|
(continued) For example, PLOT(X,Y,‘c+:‘) plots a cyan dotted line with a plus at each data point; PLOT(X,Y,‘bd‘) plots blue diamond at each data point but does not draw any line. PLOT(X1,Y1,S1,X2,Y2,S2,X3,Y3,S3,...) combines the plots defined by the (X,Y,S) triples, where the X‘s and Y‘s are vectors or matrices and the S‘s are strings. For example, PLOT(X,Y,‘y-‘,X,Y,‘go‘) plots the data twice, with a solid yellow line interpolating green circles at the data points. The PLOT command, if no color is specified, makes automatic use of the colors specified by the axes ColorOrder property. The default ColorOrder is listed in the table above for color systems where the default is blue for one line, and for multiple lines, to cycle through the first six colors in the table. For monochrome systems, PLOT cycles over the axes LineStyleOrder property. If you do not specify a marker type, PLOT uses no marker. If you do not specify a line style, PLOT uses a solid line. % snip The X,Y pairs, or X,Y,S triples, can be followed by parameter/value pairs to specify additional properties of the lines. For example, PLOT(X,Y,‘LineWidth‘,2,‘Color‘,[.6 0 0]) will create a plot with a dark red line width of 2 points.
以上是关于The plot Function in matlab的主要内容,如果未能解决你的问题,请参考以下文章
python使用matplotlib可视化线图(line plot)并自定义设置可视化图像线条的类型(specify the line style of a plot in matplotlib)
R语言使用rgl包的plot3d函数可视化可以交互旋转的3D散点图(Rotating 3D scatter plot produced by the plot3d functio in rgl)
python使用statsmodels包中的tsaplots函数可视化时间序列数据所有滞后位置个数(级别)的自相关性(plot the autocorrelation function)
python使用matplotlib可视化线图(line plot)使用invert_yaxis函数将Y轴坐标反序(invert the y axis in matplotlib)
MATLAB中mesh函数的使用:基于像素强度画3D密度图(create a 3D density plot based on the pixel intensity:mesh function)(代
R语言使用car包的scatter3d函数可视化可以交互旋转的3D散点图(Spinning 3D scatter plot by the scatter3d() function of car)