Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jyseo
/
3DFuse
like
42
Build error
App
Files
Files
Community
1
main
3DFuse
/
my
/
utils
/
plot.py
jyseo
first commit
d661b19
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
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