3DFuse / my /utils /plot.py
Hoodady's picture
Duplicate from jyseo/3DFuse
19a1abb
raw
history blame contribute delete
No virus
193 Bytes
import numpy as np
import matplotlib.pyplot as plt
def mpl_fig_to_buffer(fig):
fig.canvas.draw()
plot = np.array(fig.canvas.renderer.buffer_rgba())
plt.close(fig)
return plot