Numpy.meshgrid Š NumPy V1.15 Manual — Num Py
numpy.meshgrid%20%E2%80%94%20NumPy%20v1.15%20Manual
User Manual:
Open the PDF directly: View PDF
.
Page Count: 3
| Download | |
| Open PDF In Browser | View PDF |
numpy.meshgrid — NumPy v1.15 Manual 1 von 3 https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.mes... numpy.meshgrid Previous topic Next topic Quick search sparse=False, copy=False 31.01.2019, 21:07 numpy.meshgrid — NumPy v1.15 Manual 2 von 3 https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.mes... Ni=len(xi) (N1, N2, N3,...Nn) (N2, N1, N3,...Nn) xv, yv = np.meshgrid(x, y, sparse=False, indexing='ij' ) for i in range(nx): for j in range(ny): # treat xv[i,j], yv[i,j] xv, yv = np.meshgrid(x, y, sparse=False, indexing='xy' ) for i in range(nx): for j in range(ny): # treat xv[j,i], yv[j,i] >>> 31.01.2019, 21:07 numpy.meshgrid — NumPy v1.15 Manual 3 von 3 https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.mes... >>> nx, ny = (3, 2) >>> x = np.linspace(0, 1, nx) >>> y = np.linspace(0, 1, ny) >>> xv, yv = np.meshgrid(x, y) >>> xv array([[ 0. , 0.5, 1. ], [ 0. , 0.5, 1. ]]) >>> yv array([[ 0., 0., 0.], [ 1., 1., 1.]]) >>> xv, yv = np.meshgrid(x, y, sparse=True) # make sp arse output arrays >>> xv array([[ 0. , 0.5, 1. ]]) >>> yv array([[ 0.], [ 1.]]) >>> x = np.arange(-5, 5, 0.1) >>> >>> y = np.arange(-5, 5, 0.1) >>> xx, yy = np.meshgrid(x, y, sparse=True) >>> z = np.sin(xx**2 + yy**2) / (xx**2 + yy**2) >>> h = plt.contourf(x,y,z) 31.01.2019, 21:07
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.7 Linearized : No Page Count : 3 XMP Toolkit : XMP toolkit 2.9.1-13, framework 1.6 About : uuid:5b3455f4-27ef-11e9-0000-32aab5af49fc Producer : GPL Ghostscript 9.07 Modify Date : 2019:01:31 21:07:38+01:00 Create Date : 2019:01:31 21:07:38+01:00 Creator Tool : FreePDF 4.08 - http://shbox.de Document ID : uuid:5b3455f4-27ef-11e9-0000-32aab5af49fc Format : application/pdf Title : numpy.meshgrid Š NumPy v1.15 Manual Creator : Roger Author : RogerEXIF Metadata provided by EXIF.tools