MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / _embedded_frames

Function _embedded_frames

site-packages/matplotlib/animation.py:819–824  ·  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

817
818
819def _embedded_frames(frame_list, frame_format):
820 """frame_list should be a list of base64-encoded png files"""
821 template = ' frames[{0}] = "data:image/{1};base64,{2}"\n'
822 return "\n" + "".join(
823 template.format(i, frame_format, frame_data.replace('\n', '\\\n'))
824 for i, frame_data in enumerate(frame_list))
825
826
827@writers.register('html')

Callers 1

_runMethod · 0.85

Calls 3

joinMethod · 0.45
formatMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected