MCPcopy Index your code
hub / github.com/plotly/plotly.py / array_scanlines

Method array_scanlines

_plotly_utils/png.py:853–865  ·  view source on GitHub ↗

Generates rows (each a sequence of values) from a single array of values.

(self, pixels)

Source from the content-addressed store, hash-verified

851 self.write_passes(outfile, self.array_scanlines(pixels))
852
853 def array_scanlines(self, pixels):
854 """
855 Generates rows (each a sequence of values) from
856 a single array of values.
857 """
858
859 # Values per row
860 vpr = self.width * self.planes
861 stop = 0
862 for y in range(self.height):
863 start = stop
864 stop = start + vpr
865 yield pixels[start:stop]
866
867 def array_scanlines_interlace(self, pixels):
868 """

Callers 1

write_arrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected