i want plot time vs frequency x , y axis, third parameter specified intensity of plot @ (x, y) rather (time, frequency) point. [actually, instead of going third axis in 3d visualisation, want 2d plot, amplitude of third axis governed intensity(color) value @ (x,y)].
can please suggest me similar looking for? these plots called dynamical spectrum.
ps: plotting in python offline. have gone through https://plot.ly/python/, still not sure serve purpose.
please suggest me accomplish above :)
i'd suggest pcolormesh plot
import matplotlib.pyplot mp import numpy np # meshgrid timevector in desired format x, y = np.meshgrid(timevector, range(num_of_frequency_bins)) fig1, ax1 = mp.subplots() plothandle = mp.pcolormesh(x, y, frequencies, cmap=mp.cm.jet, antialiased=true, linewidth=0)
whereas num_of_frequency_bins
amount of frequencies display on y-axis. example 0hz 1000hz 10hz resolution you'll have do: range(0,1000,10)
antialiased looks, same linewidth. colormap jet not recommended due non-linear gray-scale, in frequency-domains regularly used. used here. python has nice linear gray-scale colormaps well!
to topic of using plotly: if want static image, don't have use plotly. if want have interactive image can drag around axes , stuff this, should take @ plotly.
Comments
Post a Comment