MemoryError when use the yt_SlicePlot function

Hi everyone, I met a trouble when I use the yt_SlicePlot function to plot a figure. It shows that --------------------------------------------------------------------------------------------------------------------- MemoryError: Unable to allocate 3.00 GiB for an array with shape (134217728, 3) and data type float64 ------------------------------------------------------------------------------------------------------------------ and seems that the array used to plot a figure is too large. I will appreciate that if anyone can give me some help! Best wishes, He Yifeng

Hi He Yifeng, Looks like you are slicing a big object! I think the way you can get around this would be to set the bounds more closely, using the ds.r object, where you specify left and right edges (in unit tuples) for the edges you want to have as your x and y and using the coordinate for the axis along which you want to slice. Alternately, you can generate a fixed resolution box using ds.r and then slice that. Let us know if that helps! On Wed, Aug 10, 2022 at 7:40 AM <hyf@stu.pku.edu.cn> wrote:

Hi He Yifeng, Looks like you are slicing a big object! I think the way you can get around this would be to set the bounds more closely, using the ds.r object, where you specify left and right edges (in unit tuples) for the edges you want to have as your x and y and using the coordinate for the axis along which you want to slice. Alternately, you can generate a fixed resolution box using ds.r and then slice that. Let us know if that helps! On Wed, Aug 10, 2022 at 7:40 AM <hyf@stu.pku.edu.cn> wrote:
participants (2)
-
hyf@stu.pku.edu.cn
-
Matthew Turk