From: Stefan v. d. W. <st...@su...> - 2006-07-13 09:47:34
|
On Wed, Jul 12, 2006 at 01:19:41PM -1000, Eric Firing wrote: > To summarize, the options seem to be: >=20 > 1) Leave plot argument parsing alone. > 2) Accept an Nx2 array in place of a pair of arguments containing x and= y. >=20 > 3) Implement the Matlab model. > 4) Implement the Matlab model, but taking rows instead of columns in an= =20 > X or Y array that is 2-D. >=20 > I am open to arguments, but my preference is the Matlab model. I don't= =20 > think that the difference in native array storage order matters much.=20 > It is more important to have the API at the plot method and function=20 > level match the way people think. I wasn't aware of the matlab model when I made the suggestion -- havn't used it for such a long time! Option (3) looks good for consistency: for one argument, always plot agains row index, for two arguments, plot columns of x to columns of y, using broadcasting if necessary (i.e. if either x or y is a vector). Regards St=E9fan |