[NumPy-Tickets] [NumPy] #966: Enhance meshgrid to generate 3D grids + add option for sparse grids

NumPy Trac numpy-tickets@scipy....
Fri Nov 11 13:59:07 CST 2011


#966: Enhance meshgrid  to generate 3D grids + add option for sparse grids
-------------------------+--------------------------------------------------
 Reporter:  pbrod        |       Owner:  charris     
     Type:  enhancement  |      Status:  needs_review
 Priority:  normal       |   Milestone:  Unscheduled 
Component:  numpy.lib    |     Version:  devel       
 Keywords:  meshgrid     |  
-------------------------+--------------------------------------------------

Comment(by rgommers):

 Looks good.  As I said on the ML, +1 on merging this after adding tests.
 Some comments on the patch:

   - don't use "copy" as a variable name, because it's a stdlib module.
   - {{{return args.copy() if copy else args}}} is not valid syntax for
 Python 2.4
   - a bit more explanation of the new keywords in the docstring would be
 helpful. For example, explain that {{{sparse=False, copy=False}}} will
 likely return non-contiguous arrays.
   - a single input maybe shouldn't be allowed, what's the point of this?
   - the 3-D point and 1-D grid examples are not too useful. Those could be
 removed.
   - the snippet above about 'xy' vs. 'ij' indexing could be added.
   - a plot using MPL could be added as final example.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/966#comment:7>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list