Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DSL-Lab/GRBM
/ fig2img
Function
fig2img
utils.py:59–65 ·
view source on GitHub ↗
(fig)
Source
from the content-addressed store, hash-verified
57
58
59
def
fig2img(fig):
60
import
io
61
buf = io.BytesIO()
62
fig.savefig(buf, bbox_inches=
'tight'
)
63
buf.seek(0)
64
img = Image.open(buf)
65
return
img
66
67
68
def
show_img(matrix, title):
Callers
1
show_img
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected