Soeben bin ich auf die Array-Generierung mit numpy.r_ gestoßen: http://docs.scipy.org/doc/numpy/referen ... l#numpy.r_
Code: Alles auswählen
import numpy as np
print(np.r_[-1:1:.25]) # [-1. -0.75 -0.5 -0.25 0. 0.25 0.5 0.75]
print(np.r_[-1:1:6j]) # [-1. -0.6 -0.2 0.2 0.6 1. ]
Ich vermute, dass diese Syntax daher kommt, damit Numpy-Code (und auch Matplotlib-Code) eine größtmögliche Ähnlichkeit zu Matlab-Code haben kann.