1. Uninstall any existing gnuplot on your OSX

    brew uninstall gnuplot

  2. Install gnuplot with either X or X11

    brew-install gnuplot --with-x11

  3. Finally, set the GNUTERM to X11

    setenv("GNUTERM","X11")

或者 brew install gnuplot --with-qt

setenv("GNUTERM","qt")

05-28 10:44