Using Maple 2025.2, I need to run my test in command line (for other reasons).
Only problem is that plottools:-exportplot does not work as well as in the GUI. The gridlines do not show.
I reported this to Maplesoft years ago. Was hoping may be it is fixed in Maple 2025.2 but it does not seem to be.
Anyone knows of a trick to show gridlines in plot (2D) when using cmaple.exe?
Here is example. Started cmaple.exe from command line (which on windows is
c:/Program Files/Maple 2025/bin.X86_64_WINDOWS/cmaple.exe
> p:=plot(x^3, x = -8 .. 8, color = "blue",axis=[gridlines=[10,color="red"]]):> plottools:-exportplot("filename2.png",p);You might want to use setdirectory() to some folder such as c:\tmp to save the plot to.
But the plot is missing the gridlines

In the UI it looks like this

This is really a big problem for me. I have to run the program in command line, but the plots geneated from command line do not look as good as when running the same program in maplew.exe vs. cmaple.exe.
This is a problem in Maple for years and years and no one in Maplesoft seems to care to fix it.
So I am asking hoping someone will have a trick to make gridline show using cmaple.exe.
Updated
I just found the case number. Actually I only reported this to Maplesoft 6 months ago. I thought it was longer than this.
Maybe they will fix it in Maple 2026?
I know Maplesoft is very busy with A.I. stuff these days, but hopefully someone will be able to have 1-2 hrs spare time from AI work and look at this and fix it.
It should not be hard to fix I would imagine, since code works in worksheet so someone just needs to use /copy same code that works in worksheet and make sure it works in cmaple.exe
Case - 00177734 | exporting plot using command line maple 2025 losses gridlines.Hello,Thank you for contacting Maplesoft.I have forwarded this inquiry to our Math Team / R&D Team. Once they review the situation and provide any further updates and/or insights, we will contact you. Thank you for your patience.Best Regards,HarishTechnical Support AnalystMaplesofthttps://www.maplesoft.com--------------- Original Message ---------------Sent: 2025-04-01, 3:34 a.m.To: support@maplesoft.comSubject: exporting plot using command line maple 2025 losses gridlines.When I export a plot to postscript using command line Maple 2025,the generated plot is missing gridlines.Same exact code executed inside GUI Maple 2025 shows the grid linesas expected.What to do to obtain same plot from command line Maple as fromthe GUI?I am using Linux Arch based distribution with Maple 2025 linux.Here is the command I used/home/me/maple2025/bin/maple A.mplHere is A.mpl----------------------p:=plot(25*t^2+10*t+20,axes=boxed,labels=[t,x(t)],axis=[gridlines=[color=lightblue]],'color' = 'red'):plotsetup(ps, plotoutput="p.ps",plotoptions=`color,noborder`);print(p);------------------------If you run the above, you will see p.ps file generated.But looking at the plot inside it, shows no gridlines.Could this be fixed or do I need different options tomake gridlines show running command line Maple?