Hi cts18488,
Besides the lt_exec() method ChaoC mentioned, you may also try following
import originpro as op
ms=op.find_sheet('m', '[MBook1]')
gl = op.new_graph(template='image')[0]
gl.add_mplot(ms, z=0, type=220) #220 is image plot type id
#https://www.originlab.com/doc/zh/LabTalk/ref/Plot-Type-IDs
gl.rescale()
pl = gl.plot_list()[0]
zl = pl.zlevels
zl['minors'] = 4
zl['levels'] = [0, 8, 16, 24, 32]
pl.zlevels = zl
pl.colormap = 'Beach.pal'