As shown in the figure below, the resulting figure always has color blocks, and there seems to be no problem with my code. I made it in pycharm, because it seems that the pygmt package always can’t be found in jupyterlab in my computer(macbook)
Usually means that those tiles (in ~/.gmt/server/earth/earth_relief/ earth_relief_01m_p or possibly earth_relief_01m_g got corrupted during download or similar so they are junk. Solution is the either remove those specific tiles (they will then be auto-downloaded when you run your script again) or the whole directory if you cannot figure out which ones (e.g, N60W030.earth_relief_01m_p.jp2 is one name with coordinates referring to lower-left corner, for instance).