rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

Plot2d default terminal broken #1671

Closed rtoy closed 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 22:21:08 Created by blackgriffen on 2014-01-24 05:04:37 Original: https://sourceforge.net/p/maxima/bugs/2683


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.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 22:21:09 Created by villate on 2014-01-24 09:49:12 Original: https://sourceforge.net/p/maxima/bugs/2683/#ffbe


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.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 22:21:12 Created by villate on 2014-01-24 09:49:31 Original: https://sourceforge.net/p/maxima/bugs/2683/#77cf


rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 22:21:16 Created by villate on 2014-05-28 15:47:03 Original: https://sourceforge.net/p/maxima/bugs/2683/#11d5


Fixed by commit [e86fb0]

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 22:21:19 Created by villate on 2014-05-28 15:47:17 Original: https://sourceforge.net/p/maxima/bugs/2683/#6fff