[已答复] Matlab中plot函数一共能调用多少种颜色？ [复制链接]

11 麦片

050

1主题 0最佳答案 发表于 2016-7-14 20:36:39 | 显示全部楼层
 stellari 发表于 2012-7-17 14:18 是的，不管你给了什么数字，最后都要送到显卡中，由显卡内部的DAC芯片转换成模拟电平，再送到显示器中去控 ... 为版主点赞！耐心，专业！

29 麦片

050

23主题 0最佳答案 发表于 2016-12-1 09:32:59 | 显示全部楼层
 %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: % %          b     blue          .     point              -     solid %          g     green         o     circle             :     dotted %          r     red           x     x-mark             -.    dashdot %          c     cyan          +     plus               --    dashed    %          m     magenta       *     star             (none)  no line %          y     yellow        s     square %          k     black         d     diamond %          w     white         v     triangle (down) %                              ^     triangle (up) %                              <     triangle (left) %                              >     triangle (right) %                              p     pentagram %                              h     hexagram %                         %   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.  By default, %   PLOT cycles through the colors in the ColorOrder property.  For %   monochrome systems, PLOT cycles over the axes LineStyleOrder property. % %   Note that RGB colors in the ColorOrder property may differ from %   similarly-named colors in the (X,Y,S) triples.  For example, the %   second axes ColorOrder property is medium green with RGB [0 .5 0], %   while PLOT(X,Y,'g') plots a green line with RGB [0 1 0]. % %   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. % %   PLOT(AX,...) plots into the axes with handle AX. % %   PLOT returns a column vector of handles to lineseries objects, one %   handle per plotted line. % %   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. % %   Example %      x = -pi:pi/10:pi; %      y = tan(sin(x)) - sin(tan(x)); %      plot(x,y,'--rs','LineWidth',2,... %                      'MarkerEdgeColor','k',... %                      'MarkerFaceColor','g',... %                      'MarkerSize',10) % %   See also PLOTTOOLS, SEMILOGX, SEMILOGY, LOGLOG, PLOTYY, PLOT3, GRID, %   TITLE, XLABEL, YLABEL, AXIS, AXES, HOLD, LEGEND, SUBPLOT, SCATTER. %   If the NextPlot axes property is "replace" (HOLD is off), PLOT resets %   all axes properties, except Position, to their default values, %   deletes all axes children (line, patch, text, surface, and %   image objects), and sets the View property to [0 90]. %   Copyright 1984-2009 The MathWorks, Inc. %   \$Revision: 5.19.4.10 \$  \$Date: 2009/05/18 20:48:24 \$ %   Built-in function.复制代码

29 麦片

050

23主题 0最佳答案 发表于 2016-12-1 09:55:56 | 显示全部楼层 honglei.chen 发表于 2012-7-16 21:27 这些只是可以用字母设的，你可以用RGB来指定任意颜色。你也可以改背景色再画白线。 plot(1:10,'Color',[0. ... 如何漂亮地画出24种颜色的曲线呢？

9 麦片

050

5主题 0最佳答案 发表于 2017-6-2 10:59:41 | 显示全部楼层
 请问怎么把灰度值为255的编程黄色呢

5 麦片

050

0主题 0最佳答案 发表于 2019-1-12 16:36:53 | 显示全部楼层
 这里真是个好地方，有人这么耐心的回答问题
 本版积分规则 回帖后跳转到最后一页