mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
rename tostring_rgb to tostring_argb
This commit is contained in:
parent
1761b21f06
commit
bce18ed564
@ -113,7 +113,7 @@ def plot_feature(spectrogram):
|
|||||||
plt.tight_layout()
|
plt.tight_layout()
|
||||||
|
|
||||||
fig.canvas.draw()
|
fig.canvas.draw()
|
||||||
data = np.fromstring(fig.canvas.tostring_rgb(), dtype=np.uint8, sep="")
|
data = np.fromstring(fig.canvas.tostring_argb(), dtype=np.uint8, sep="")
|
||||||
data = data.reshape(fig.canvas.get_width_height()[::-1] + (3,))
|
data = data.reshape(fig.canvas.get_width_height()[::-1] + (3,))
|
||||||
plt.close()
|
plt.close()
|
||||||
return data
|
return data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user