Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
jyseo/3DFuse
ahadi
/
3DFuse
like
0
Build error
App
Files
Files
Community
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