Question: How to make plottols:-exportplot work in cmaple.exe?

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.

Please Wait...