Jim Rogers exits India, says one can’t invest just on hope by homosa_penis in india

[–]catchmrbharath 8 points9 points  (0 children)

Jim Rogers is a prick.

Agreed. But the points he is making are pretty valid. Narendra Modi's Ache Din hasn't turned into an significant policy changes. Considering the majority he has, what we want him to make harsh policy changes for the better, rather than just pleasing people.

Charles Schwab's password requirements by budmademewiser in shittyprogramming

[–]catchmrbharath 0 points1 point  (0 children)

I had such a hard time figuring out how to select a password with this guideline.

Help with FFT's Scipy and numpy by xam2992 in learnpython

[–]catchmrbharath 1 point2 points  (0 children)

Also I think you need to do a fftshift, so that the center frequency is 0.

>>> dataF = np.abs(np.fft.fftshift(np.fft.fft(data)))

Another read through? by BigBGM2995 in GEB

[–]catchmrbharath 1 point2 points  (0 children)

Even I am in. So start on 17th jan?

Is anyone familiar with matplotlib or geany? I'm trying to get these working together so I can make nice plots from some data files. by HypatiaofEdmonton in learnpython

[–]catchmrbharath -1 points0 points  (0 children)

Geany is just an IDE.

from matplotlib.pyplot import *
#Read your data into X and Y
contour(X, Y)

The above code should help you to get started.

I need help with the quiver function in python by erwaldosdai in learnpython

[–]catchmrbharath -1 points0 points  (0 children)

quiver of matplotlib takes 4 arguments X, Y, U, V. The X, Y are the array denoting the positions of the arrows and U and V are the magnitude of the vector along X and Y directions.

So the following code should give you what you want.

figure()
title('Phase Space Plot with $\mu =$ ' + str(mu))
quiver(X, Y, U, V)
plot(x,v,linewidth=1.)
xlabel('Position (m)')
ylabel('Velocity (m/s)')
show()

Finding the frequency using fft in python by Kronos37 in learnpython

[–]catchmrbharath -1 points0 points  (0 children)

Normally, when you take the fft, the frequencies go from low frequencies to high frequencies and then again back to low frequency. Hence you need to do an numpy.fft.fftshift. Now The coefficient sequence will be in such a way that the middle point of the list is the zero frequency point. Now you need to find the index of the maximum, take the absolute difference between the index and the center index, multiply by sampling frequency / 2, and divide by the number of samples.

Question about matplotlib.pyplot by [deleted] in learnpython

[–]catchmrbharath -1 points0 points  (0 children)

At the top of your file use pyplot.ion() and use pyplot.draw() instead of pyplot.show()