MCPcopy 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
59def 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
68def show_img(matrix, title):

Callers 1

show_imgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected