Hey.. I have run into a bit of a problem with my python code.. I have a set of values each for frequency and power-spectrum. I need to plot frequency v/s power-spectrum on Log scale. I was trying to store the logarithmic values of frequency and power-spectrum in 2 other variables and then plot them.. Any idea how that can be done?
Share
If you are only interested in plotting the data on a log scale, consider the
matplotlibmethods,loglogandsemilogxandsemilogy:http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.loglog
http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/log_demo.py
This would allow you to avoid calculating the log of the various arrays and allow you to customize exactly how the various quantities are displayed.