transpose - Different luminance of Python imshow with transposed data -
this might trivial question.
i store series of spectrum 1025 frequency bins list, using want plot imshow. data list having 345 entries representing number of time frames, each of has 1025 dimensions representing frequency bins. normal or conventional way display spectrogram having x-axis time frame , y-axis frequency bin.
my attempts follows:
imshow(x, aspect='auto');show() imshow(np.array(x), aspect='auto');show() # seems same first one. # correct display x-axis time , y-axis frequency bin, # , y-axis should ordered lower upper. imshow(np.array(x).t, aspect='auto', origin='lower');show() however, third plot seems have dimmer luminance , issue of normalization. how imshow behave differently transposed data?

edit:
trying specify figure size @ first place
plt.figure(figsize=(7,5)) imshow(np.array(x).t, aspect='auto', origin='lower') 
though figure size alters luminance of image, relative magnitude of each component in y-axis doesn't same me when compared former image, i.e., first , second one. how imshow adjust luminance transposed data or different orientation?
Comments
Post a Comment