When I try to access the linux desktop from my macbook with macOS system. It is discovered that direct link to the linux system is all right. However, when I try to plot figure and display it on the macOS side. It is not possible to access the graphics. Then I searched on the Internet and discovered a solution [https://blog.csdn.net/dobell/article/details/55047811].

Firstly, you need to adjust the ssh configuration on your linux server. Which shall be the file at: /etc/ssh/sshd_config, and set the value:

1
2
X11 Forwarding yes
X11 Display Offset 10

Secondly, you need to make adjustment to the ssh configuration file on your macbook notebook:
/private/etc/ssh/ssh_config and set the value as:

1
ForwardX11 yes

Thirdly, you need to download the XQuartz on the macbook. Then install and launch it. Finally, you can open your mac terminal and display the remote linux figure on your local machine.