MemoryError when running Numpy Meshgrid

前端 未结 3 738
小蘑菇
小蘑菇 2020-12-15 13:51

I have 8823 data points with x,y coordinates. I\'m trying to follow the answer on how to get a scatter dataset to be represented as a heatmap but when I go

3条回答
  •  感动是毒
    2020-12-15 14:47

    Your call to meshgrid requires a lot of memory -- it produces two 8823*8823 floating point arrays. Each of them are about 0.6 GB.

    But your screen can't show (and your eye can't really process) that much information anyway, so you should probably think of a way to smooth your data to something more reasonable like 1024*1024 before you do this step.

提交回复
热议问题