How about concatenating the two vectors into an array:

for x,y in np.c_[t,s]:
    print("xy: %f:%f" % (x,y))

This gives

xy: 0.000000:0.000000
xy: 0.250000:1.000000
xy: 0.500000:0.000000
xy: 0.750000:-1.000000
xy: 1.000000:-0.000000
xy: 1.250000:1.000000

If you want to iterate so you can save memory, you can use the itertools.izip function:

for x,y in itertools.izip(t,s):
    print("xy: %f:%f" % (x,y))
Answer from SiggyF on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ numpy โ€บ numpy_array_iterating.asp
NumPy Array Iterating
Iterating means going through elements one by one. As we deal with multi-dimensional arrays in numpy, we can do this using basic for loop of python.
๐ŸŒ
NumPy
numpy.org โ€บ devdocs โ€บ reference โ€บ arrays.nditer.html
Iterating over arrays โ€” NumPy v2.6.dev0 Manual
An important thing to be aware of for this iteration is that the order is chosen to match the memory layout of the array instead of using a standard C or Fortran ordering. This is done for access efficiency, reflecting the idea that by default one simply wants to visit each element without concern for a particular ordering. We can see this by iterating over the transpose of our previous array, compared to taking a copy of that transpose in C order.
๐ŸŒ
NumPy
numpy.org โ€บ doc โ€บ stable โ€บ reference โ€บ arrays.nditer.html
Iterating over arrays โ€” NumPy v2.5 Manual
An important thing to be aware of for this iteration is that the order is chosen to match the memory layout of the array instead of using a standard C or Fortran ordering. This is done for access efficiency, reflecting the idea that by default one simply wants to visit each element without concern for a particular ordering. We can see this by iterating over the transpose of our previous array, compared to taking a copy of that transpose in C order.
๐ŸŒ
NumPy
numpy.org โ€บ devdocs โ€บ user โ€บ c-info.beyond-basics.html
Beyond the basics โ€” NumPy v2.6.dev0 Manual
If all you want to do is iterate over arrays with the same shape, then simply creating several iterator objects is the standard procedure. For example, the following code iterates over two arrays assumed to be the same shape and size (actually obj1 just has to have at least as many total elements ...
๐ŸŒ
NumPy
numpy.org โ€บ doc โ€บ stable โ€บ user โ€บ c-info.beyond-basics.html
Beyond the basics โ€” NumPy v2.5 Manual
If all you want to do is iterate over arrays with the same shape, then simply creating several iterator objects is the standard procedure. For example, the following code iterates over two arrays assumed to be the same shape and size (actually obj1 just has to have at least as many total elements ...
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ numpy โ€บ numpy iterating over array
NumPy Iterating Over Array - Scaler Topics - Scaler Topics
September 9, 2022 - Nditer treats the arrayโ€™s items as read-only by default. However, we can modify the array value by using an optional parameter of the nditer object called Op flags (operand flags). With the help of broadcasting, a combined nditer object can iterate over two arrays simultaneously.
๐ŸŒ
NumPy
numpy.org โ€บ doc โ€บ 2.1 โ€บ user โ€บ c-info.beyond-basics.html
Beyond the basics โ€” NumPy v2.1 Manual
If all you want to do is iterate over arrays with the same shape, then simply creating several iterator objects is the standard procedure. For example, the following code iterates over two arrays assumed to be the same shape and size (actually obj1 just has to have at least as many total elements ...
Find elsewhere
๐ŸŒ
NumPy
numpy.org โ€บ doc โ€บ 2.1 โ€บ reference โ€บ arrays.nditer.html
Iterating over arrays โ€” NumPy v2.1 Manual
An important thing to be aware of for this iteration is that the order is chosen to match the memory layout of the array instead of using a standard C or Fortran ordering. This is done for access efficiency, reflecting the idea that by default one simply wants to visit each element without concern for a particular ordering. We can see this by iterating over the transpose of our previous array, compared to taking a copy of that transpose in C order.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ numpy โ€บ numpy_iterating_over_array.htm
NumPy - Iterating Over Array
In NumPy, you can use basic Python for loops to iterate over arrays. A for loop is a control flow statement used for iterating over a sequence (such as a list, tuple, dictionary, set, or string).
๐ŸŒ
Pluralsight
pluralsight.com โ€บ blog โ€บ tech guides & tutorials
Iterating Numpy Arrays | Pluralsight
November 12, 2018 - To iterate each cell in the two-dimensional array, nest the for loop. for row in A: for cell in row: print(cell, end=' ') ... If you do not want to write two for loops, you can use the flatten function that flattens the two-dimensional array ...
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ numpy-iterating-over-array
Numpy - Iterating Over Arrays - GeeksforGeeks
July 23, 2025 - Each iteration returns a 2D sub-array from the 3D array. The numpy.nditer object offers a various way to iterate over arrays.
๐ŸŒ
NumPy
numpy.org โ€บ doc โ€บ 2.2 โ€บ reference โ€บ arrays.nditer.html
Iterating over arrays โ€” NumPy v2.2 Manual
An important thing to be aware of for this iteration is that the order is chosen to match the memory layout of the array instead of using a standard C or Fortran ordering. This is done for access efficiency, reflecting the idea that by default one simply wants to visit each element without concern for a particular ordering. We can see this by iterating over the transpose of our previous array, compared to taking a copy of that transpose in C order.
๐ŸŒ
Python Pool
pythonpool.com โ€บ home โ€บ numpy โ€บ numpy nditer(): multi-dimensional array iteration
Numpy nditer | Loop Through Numpy array - Python Pool
July 13, 2026 - Quick answer: numpy.nditer() is a configurable iterator for explicit array traversal. It can track multi-dimensional coordinates, choose traversal order, expose writable operands, buffer values, and iterate over multiple arrays.
๐ŸŒ
Tutorialsandyou
tutorialsandyou.com โ€บ python โ€บ iterating-over-numpy-array-77.html
Iterating over NumPy Array
import numpy as np x = np.array([1, 2, 3, 4, 5]) print('Original array is:\n', x) for t in np.nditer(x, op_flags=['readwrite']): t[...] = t * 3 print('Modified array is:\n', x) ... Two arrays can be iterated simultaneously only when they are broadcastable. For more information on Numpy ...
๐ŸŒ
SciPy
docs.scipy.org โ€บ doc โ€บ numpy-1.10.0 โ€บ user โ€บ c-info.beyond-basics.html
Beyond the Basics โ€” NumPy v1.10 Manual
October 18, 2015 - If all you want to do is iterate over arrays with the same shape, then simply creating several iterator objects is the standard procedure. For example, the following code iterates over two arrays assumed to be the same shape and size (actually obj1 just has to have at least as many total elements ...