Uninstall any existing gnuplot on your OSXbrew uninstall gnuplotInstall gnuplot with either X or X11brew-install gnuplot --with-x11Finally, set the GNUTERM to X11setenv("GNUTERM","X11")或者 brew install gnuplot --with-qtsetenv("GNUTERM","qt")