stretch

physically stretch plot in horizontal direction in python

physically stretch plot in horizontal direction in python Question: I want a simple x,y plot created with matplotlib stretched physically in x-direction. The intention is to get a result were it is easier for me to detect features in the signal. So I don’t want to change any scales or values or limits. Just change …

Total answers: 4

Resizing and stretching a NumPy array

Resizing and stretching a NumPy array Question: I am working in Python and I have a NumPy array like this: [1,5,9] [2,7,3] [8,4,6] How do I stretch it to something like the following? [1,1,5,5,9,9] [1,1,5,5,9,9] [2,2,7,7,3,3] [2,2,7,7,3,3] [8,8,4,4,6,6] [8,8,4,4,6,6] These are just some example arrays, I will actually be resizing several sizes of arrays, not …

Total answers: 3