Plot without holding data in memory

I have found this post. Your algorithm could look like

for all chunks of data 
  read chunk
  convert chunk to pixels
  set pixels
end