MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _embedded_frames

Function _embedded_frames

lib/matplotlib/animation.py:735–743  ·  view source on GitHub ↗

frame_list should be a list of base64-encoded png files

(frame_list, frame_format)

Source from the content-addressed store, hash-verified

733
734
735def _embedded_frames(frame_list, frame_format):
736 """frame_list should be a list of base64-encoded png files"""
737 if frame_format == 'svg':
738 # Fix MIME type for svg
739 frame_format = 'svg+xml'
740 template = ' frames[{0}] = "data:image/{1};base64,{2}"\n'
741 return "\n" + "".join(
742 template.format(i, frame_format, frame_data.replace('\n', '\\\n'))
743 for i, frame_data in enumerate(frame_list))
744
745
746@writers.register('html')

Callers 1

finishMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…