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:
Color code Meaning
b blue
g green
r red
c cyan
m magenta
y yellow
k black
w white
Symbol code Meaning
. point
o circle
x x-mark
+ plus
* star
s square
d diamond
v triangle (down)
^ triangle (up)
< triangle (left)
> triangle (right)
p pentagram
h hexagram
Line code Meaning
- solid
 : dotted
-. dash-dot
-- dashed
(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.

最新文章

  1. Style样式
  2. Hdu 3564 Another LIS 线段树+LIS
  3. WPF中未将对象引用设置到对象的实例
  4. EL表达式显示数据取整问题
  5. img 在层内 居中显示
  6. vs2013 设置为中文版
  7. Eclipse改变外观,护眼模式
  8. ASP.NET MVC 学习5、登陆页面改为SSO验证
  9. stm32f10x.h文件分析理解
  10. Cloud Insight 客户案例-晨芯时代科技有限公司
  11. Leetcode解题思想总结篇:双指针
  12. Struts2实现异步调用机制详细剖析(XML和JSON)
  13. ECP系统J2EE架构开发平台
  14. Linux学习之路(二)
  15. cf自训4.10
  16. Ehlib(Delphi控件) v9.2.024 D7-XE10.2 免费绿色特别版
  17. cmake find_package 中,include_directories,target_link_libraries 的值怎么知道?
  18. MyBean - 单实例插件改进和VCL插件的改进
  19. [C++] Variable/Hex conversion
  20. Javascript混淆与解混淆的那些事儿

热门文章

  1. jquery datepicker-强大的日期控件
  2. 利用dns解析来实现网站的负载均衡
  3. erlang 线上分析工具集锦
  4. 《C++ Primer 4th》读书笔记 第8章-标准IO库
  5. 【Unity3D】枪战游戏—弹孔设置
  6. 【转载】两个Web.config中连接字符串中特殊字符解决方案
  7. Ruby窗口程序
  8. Hibernate管理Session和批量操作
  9. 使用rsync同步Linux数据到Windows
  10. POJ 2362 Square