#2683 Plot2d default terminal broken

Sean Lake

The default gnuplot terminal in Mac OS X 10.8 used to pop up in aqua. In version 5.32.1 that no longer works. Instead the plot2d command fails quietly, with the only clue coming from trying to run the command:
plot2d( x^2, [x, -4, 4], [plot_format, gnuplot] );

set term wxt size 640,480 font ",12"; set term pop
"/Users/sean/maxout.gnuplot", line 1: unknown or ambiguous terminal type; type just 'set terminal' for a list

It appears that the default terminal on Mac OS X has been changed to wxt.


  • Jaime E. Villate

    Sorry. I thought that in systems without gnuplot/wxt support, the command "set term wxt" would simply set the terminal to "unknown" and the following command, "set term pop", would then recover the default terminal. As you have shown, I was wrong and gnuplot exits when an unknown terminal is found. I will take some time to fix this bug (explanation at the end). In the mean time, please add the following command to your file [USERDIRECTORY]/.maxima/maxima-init.mac
    set_plot_option([gnuplot_default_term_command,"set term pop"])$

    Or, if you prefer, "set term aqua" instead of pop.

    The reason why I will not eliminate the "set term wxt" command right away is because I will first try to figure out an easy way to change the default size and font in systems that do use WXT. Also, your bug report brings up some other issues: in systems where gnuplot was not build with Cairo support some other plot options will fail. Even without requiring Cairo, if gnuplot has no support at all for Postscript or other formats, those options will still fail. We might have to use Autoconf/Automake to find out default values and supported options according to the gnuplot version being used.

    Thanks for your report.

  • Jaime E. Villate

    • assigned_to: Jaime E. Villate
  • Jaime E. Villate

    Fixed by commit [e86fb0]



    Commit: [e86fb0]

  • Jaime E. Villate

    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks