ax1 = fig.add_subplot(111, projection='3d')
ax1.scatter(X, Y, Z)
ax1.view_init(-10, 45)
tmp_planes = ax1.zaxis._PLANES
ax1.xaxis._PLANES = tmp_planes[3], tmp_planes[2], tmp_planes[1], tmp_planes[0
    ], tmp_planes[5], tmp_planes[4]
ax1.yaxis._PLANES = tmp_planes[3], tmp_planes[2], tmp_planes[1], tmp_planes[0
    ], tmp_planes[5], tmp_planes[4]
view_1 = 25, -135
view_2 = -10, 45
init_view = view_2
ax1.view_init(*init_view)
Линии сетки над 3D-графиком рассеяния в matplotlib