--- a/trunk/htdocs/matplotlib.matlab.html.template +++ b/trunk/htdocs/matplotlib.matlab.html.template @@ -438,49 +438,66 @@ <br> will make the x and y axes in the plot agree with the numrows<br> and numcols of Z</tt></dd></dl> - <dl><dt><a name="-plot"><strong>plot</strong></a>(*args, **kwargs)</dt><dd><tt> plot lines. *args is a variable length argument, allowing for<br> - multiple x, y pairs with an optional format string. For<br> - example, all of the following are legal<br> - <br> - <a href="#-plot">plot</a>(x,y) # plot Numeric arrays y vs x<br> - <a href="#-plot">plot</a>(x,y, 'bo') # plot Numeric arrays y vs x with blue circles<br> - <a href="#-plot">plot</a>(y) # plot y using x = <a href="#-arange">arange</a>(len(y))<br> - <a href="#-plot">plot</a>(y, 'r+') # ditto with red plusses<br> - <br> - An arbitrary number of x, y, fmt groups can be specified, as in <br> - <br> - <a href="#-plot">plot</a>(x1, y1, 'g^', x2, y2, 'l-') <br> - <br> - Return value is a list of lines that were added<br> - <br> - The following line styles are supported:<br> - <br> - - : solid line<br> - -- : dashed line<br> - -. : dash-dot line<br> - : : dotted line<br> - . : points<br> - , : pixels<br> - o : circle symbols<br> - ^ : triangle up symbols<br> - v : triangle down symbols<br> - < : triangle left symbols<br> - > : triangle right symbols<br> - s : square symbols<br> - + : plus symbols<br> - <br> - The following color strings are supported<br> - <br> - b : blue<br> - g : green<br> - r : red<br> - c : cyan<br> - m : magenta<br> - y : yellow<br> - k : black <br> - w : white<br> - <br> -Line styles and colors are combined in a single format string</tt></dd></dl> + <dl><dt><a name="-plot"><strong>plot</strong></a>(*args, **kwargs)</dt><dd><tt>plot lines. *args is a variable length argument, allowing for<br> +multiple x, y pairs with an optional format string. For<br> +example, all of the following are legal<br> + <br> + <a href="#-plot">plot</a>(x,y) # plot Numeric arrays y vs x<br> + <a href="#-plot">plot</a>(x,y, 'bo') # plot Numeric arrays y vs x with blue circles<br> + <a href="#-plot">plot</a>(y) # plot y using x = <a href="#-arange">arange</a>(len(y))<br> + <a href="#-plot">plot</a>(y, 'r+') # ditto with red plusses<br> + <br> +An arbitrary number of x, y, fmt groups can be specified, as in <br> + <br> + <a href="#-plot">plot</a>(x1, y1, 'g^', x2, y2, 'l-') <br> + <br> +Return value is a list of lines that were added<br> + <br> +The following line styles are supported:<br> + <br> + - : solid line<br> + -- : dashed line<br> + -. : dash-dot line<br> + : : dotted line<br> + . : points<br> + , : pixels<br> + o : circle symbols<br> + ^ : triangle up symbols<br> + v : triangle down symbols<br> + < : triangle left symbols<br> + > : triangle right symbols<br> + s : square symbols<br> + + : plus symbols<br> + <br> +The following color strings are supported<br> + <br> + b : blue<br> + g : green<br> + r : red<br> + c : cyan<br> + m : magenta<br> + y : yellow<br> + k : black <br> + w : white<br> + <br> +Line styles and colors are combined in a single format string<br> + <br> +The kwargs that are can be used to set line properties (any<br> +property that has a set_* method). You can use this to set a line<br> +label (for auto legends), linewidth, anitialising, marker face<br> +color, etc. Here is an example:<br> + <br> + <a href="#-plot">plot</a>([1,2,3], [1,2,3], 'go-', label='line 1', linewidth=2)<br> + <a href="#-plot">plot</a>([1,2,3], [1,4,9], 'rs', label='line 2')<br> + <a href="#-axis">axis</a>([0, 4, 0, 10])<br> + <a href="#-legend">legend</a>()<br> + <br> +If you make multiple lines with one plot command, the kwargs apply<br> +to all those lines, eg<br> + <br> + <a href="#-plot">plot</a>(x1, y1, x2, y2, antialising=False)<br> + <br> +Neither line will be antialiased.</tt></dd></dl> <dl><dt><a name="-plotting"><strong>plotting</strong></a>()</dt><dd><tt>Plotting commands<br> <br> axes - Create a new axes<br> @@ -728,7 +745,6 @@ <strong>Complex32</strong> = 'F'<br> <strong>Complex64</strong> = 'D'<br> <strong>Complex8</strong> = 'F'<br> -<strong>FILE</strong> = '.numerix'<br> <strong>False</strong> = False<br> <strong>Float</strong> = 'd'<br> <strong>Float0</strong> = 'f'<br> @@ -736,7 +752,6 @@ <strong>Float32</strong> = 'f'<br> <strong>Float64</strong> = 'd'<br> <strong>Float8</strong> = 'f'<br> -<strong>HOME</strong> = '/home/jdhunter'<br> <strong>Int</strong> = 'l'<br> <strong>Int0</strong> = '1'<br> <strong>Int16</strong> = 's'<br> @@ -802,7 +817,7 @@ <strong>not_equal</strong> = <ufunc 'not_equal'><br> <strong>pi</strong> = 3.1415926535897931<br> <strong>power</strong> = <ufunc 'power'><br> -<strong>rcParams</strong> = {'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.grid': False, 'axes.labelcolor': 'k', 'axes.labelsize': 12.0, 'axes.linewidth': 1.0, 'axes.titlesize': 14.0, 'backend': 'Agg', 'datapath': '/usr/local/share/matplotlib', 'figure.dpi': 80.0, ...}<br> +<strong>rcParams</strong> = {'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.grid': False, 'axes.labelcolor': 'k', 'axes.labelsize': 12.0, 'axes.linewidth': 1.0, 'axes.titlesize': 14.0, 'backend': 'GTK', 'datapath': '/usr/local/share/matplotlib', 'figure.dpi': 80.0, ...}<br> <strong>readme</strong> = '<font color="#c040c0">\n</font>MLab2.py, release 1<font color="#c040c0">\n\n</font>Created on February 2003 b...<font color="#c040c0">\n</font>Look at: http://pdilib.sf.net for new releases.<font color="#c040c0">\n</font>'<br> <strong>remainder</strong> = <ufunc 'remainder'><br> <strong>right_shift</strong> = <ufunc 'right_shift'><br> @@ -814,5 +829,5 @@ <strong>tanh</strong> = <ufunc 'tanh'><br> <strong>true_divide</strong> = <ufunc 'true_divide'><br> <strong>typecodes</strong> = {'Character': 'c', 'Complex': 'FD', 'Float': 'fd', 'Integer': '1sil', 'UnsignedInteger': 'bwu'}<br> -<strong>which</strong> = ('numeric', 'defaulted')</td></tr></table> +<strong>which</strong> = ('numeric', 'rc')</td></tr></table> @footer@ \ No newline at end of file