rtoy / maxima

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

Gnuplot dumb terminal output should suppress size ratio #1169

Open rtoy opened 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 01:46:42 Created by robert_dodier on 2022-04-28 19:52:51 Original: https://sourceforge.net/p/maxima/bugs/3971


When the Gnuplot terminal is dumb, i.e. [gnuplot_term, 'dumb], the command set size ratio should be suppressed; otherwise it leads to surprising behavior, as it interacts with "dumb size nnn, nnn". The effect of combining the two (as it is at present) is that the plot isn't as wide as what's specified bydumb size ratio.

At present there isn't a way to disable set size ratio, but a partial workaround is to to [yx_ratio, 0.5] or something; the default is 0.75, and making the ratio smaller has the effect of making the plot wider.

E.g. given:

(%i1) plot2d ([discrete, [1, 2, 3, 4]], [plot_format, gnuplot], [gnuplot_term, "dumb size 100, 24"]);
(%o1)            [/tmp/maxout6450.gnuplot, /tmp/maxplot.dumb]

I've attached the original Gnuplot command file and output file as *-original, and the original files with set size ratio commented out, and the original files with set size ratio 0.5.

As you can see, the output for the no-size-ratio fills up the specified output size, but the default, with set size ratio 0.75, does not, and set size ratio 0.5 is more nearly like the no-size-ratio version.

Working with Maxima 5.46 + some commits and Gnuplot 5.4 patchlevel 2.

Attachments:

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 01:46:43 Created by robert_dodier on 2022-04-29 02:30:57 Original: https://sourceforge.net/p/maxima/bugs/3971/#986b