1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Description of nxtcolor</title> |
---|
6 | <meta name="keywords" content="nxtcolor"> |
---|
7 | <meta name="description" content="NXTCOLOR - Return the next color (string) to be used in a plot"> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
10 | <meta name="robots" content="index, follow"> |
---|
11 | <link type="text/css" rel="stylesheet" href="../../m2html.css"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <a name="_top"></a> |
---|
15 | <div><a href="../../index.html">Home</a> > <a href="#">applications</a> > <a href="index.html">common</a> > nxtcolor.m</div> |
---|
16 | |
---|
17 | <!--<table width="100%"><tr><td align="left"><a href="../../index.html"><img alt="<" border="0" src="../../left.png"> Master index</a></td> |
---|
18 | <td align="right"><a href="index.html">Index for applications/common <img alt=">" border="0" src="../../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>nxtcolor |
---|
21 | </h1> |
---|
22 | |
---|
23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2> |
---|
24 | <div class="box"><strong>NXTCOLOR - Return the next color (string) to be used in a plot</strong></div> |
---|
25 | |
---|
26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2> |
---|
27 | <div class="box"><strong>function [color,data_num]= nxtcolor </strong></div> |
---|
28 | |
---|
29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2> |
---|
30 | <div class="fragment"><pre class="comment">NXTCOLOR - Return the next color (string) to be used in a plot |
---|
31 | [color,data_num]= nxtcolor |
---|
32 | color = next color to plot |
---|
33 | data_num = number of lines on plot |
---|
34 | SMB 25-FEB-1998 Bren@slac.stanford.edu</pre></div> |
---|
35 | |
---|
36 | <!-- crossreference --> |
---|
37 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2> |
---|
38 | This function calls: |
---|
39 | <ul style="list-style-image:url(../../matlabicon.gif)"> |
---|
40 | </ul> |
---|
41 | This function is called by: |
---|
42 | <ul style="list-style-image:url(../../matlabicon.gif)"> |
---|
43 | </ul> |
---|
44 | <!-- crossreference --> |
---|
45 | |
---|
46 | |
---|
47 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2> |
---|
48 | <div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [color,data_num]= nxtcolor</a> |
---|
49 | 0002 <span class="comment">%NXTCOLOR - Return the next color (string) to be used in a plot</span> |
---|
50 | 0003 <span class="comment">% [color,data_num]= nxtcolor</span> |
---|
51 | 0004 <span class="comment">% color = next color to plot</span> |
---|
52 | 0005 <span class="comment">% data_num = number of lines on plot</span> |
---|
53 | 0006 <span class="comment">% SMB 25-FEB-1998 Bren@slac.stanford.edu</span> |
---|
54 | 0007 |
---|
55 | 0008 colors = get(gca,<span class="string">'colororder'</span>); |
---|
56 | 0009 data_num = length(findobj(gca,<span class="string">'Type'</span>,<span class="string">'line'</span>)); |
---|
57 | 0010 color = colors(rem(data_num,size(colors,1))+1,:);</pre></div> |
---|
58 | <hr><address>Generated on Mon 21-May-2007 15:32:41 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
59 | </body> |
---|
60 | </html> |
---|