MaplePrimes Questions

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,

Harish
Technical Support Analyst
Maplesoft
https://www.maplesoft.com

--------------- Original Message ---------------
Sent: 2025-04-01, 3:34 a.m.
To: support@maplesoft.com
Subject: 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 lines
as expected.

What to do to obtain same plot from command line Maple as from
the GUI?

I am using Linux Arch based distribution with Maple 2025 linux.

Here is the command I used

/home/me/maple2025/bin/maple A.mpl

Here 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 to
make gridlines show running command line Maple?

I am trying to see if installing Physics update package will fix a problem I am having as described here by having a fix that maybe not included in Maple 2025.2

But I do not know how to do that. When doing Physics:-Version(); or Physics:-Version(latest); Maple says

             `The "Physics Updates" package is not available for the version of Maple under development`

Does this mean Physics update package is not needed in Maple 2025.2?  Otherwise, what are the instructions to install Physics package now?

May be someone could clarify the status of Physics package and if it is something that one should still install along with SupportTools which in Maple 2025.2 was there automatically and did not need to install it.

Update 

JUst verified that Physics update package V 1881 is still needed in Maple 2025.2 as it has important fixes not merged in Maple 2025.2.

To install Physics package in Maple 2025.2 had to click on the top right corner of the worksheet (the down arrow) near the "sign in".

Then go down to "packages" and select and click on the install button next to Physics package.  (first in list).

This will download and install it.

Now closed all of Maple and restarted it.

Now Physics package V 1881 is installed and have fixes in it that are missing from Maple 2025.2.  This is why my test was failing. Now the test do not fail.

So first time, the command Physics:-Version(latest) does not work. But from now on it should work.

I would have expected all fixes made in Physics update to have been merged into the new Maple release.

In 2025.2, I found that calling Physics:-Setup causes code of `convert/diff` to change (on the fly) causing error.

I removed from my code the places I was calling Physics:-Setup explicitly, but the error still shows up. Which means there is still places in the code to cause Physics to come into play.

I just installed 2025.2 and have not done anything yet. Just running a test. 

Does one need to install Physics package?

First, let me give an example showing that calling Physics:-Setup changes `convert/diff` which ends up causing an internal Maple error

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

SupportTools:-Version();

`The Customer Support Updates version in the MapleCloud is 29 and is the same as the version installed in this computer, created June 23, 2025, 10:25 hours Eastern Time.`

Physics:-Version();

`The "Physics Updates" package is not available for the version of Maple under development`

restart;

Original result. No problem

 

print(`convert/diff`);

proc (a, { useeval::truefalse := false }) local ee, zD; ee := `PDEtools/usediff`(a); zD := indets(ee, 'And(function, satisfies(proc (f) options operator, arrow; (op(0, f))::`PDEtools/D/structure` end proc))'); if zD = {} then ee else _Env_t_in_use := `tools/get_symbols`(a); if useeval then zD := map(`convert/diff/D_to_eval@diff`, zD, ':-useEval'); zD := map(proc (u) options operator, arrow; lhs(u) = subsop(0 = eval, rhs(u)) end proc, zD); subs(zD, ee) else subs(map(`convert/diff/D_to_eval@diff`, zD), a) end if end if end proc

T:=D(x)(infinity):

PDEtools:-difforder(convert(T,diff))

1

 

 

 

After call Physics:-Setup

 

restart;

Physics:-Setup('assumingusesAssume' = false):

print(`convert/diff`);

proc () local ans; ans := usepdiff(args); if has([ans], 'D') then ans := Physics:-OriginalValue["convert/diff"](ans, args[2 .. -1]) end if; ans end proc

T:=D(x)(infinity):

PDEtools:-difforder(convert(T,diff))

Error, (in unknown) invalid input: diff received infinity, which is not valid for its 2nd argument

 

 

 

 

Download why_code_changes_calling_Physics_maple_2025_2_nov_24_2025.mw

Notice that now calling PDEtools:-difforder(convert(T,diff))  fail because Physics:- was called.

But my code now has no calls to Physics:-, I made sure to comment all those out. 

But I still get same error when I run my test program. Not able to find where Physics is "activated" again to cause the code change in `convert/diff` that happens dynamically when Physics is loaded.

It must be happining on different call internally. But have no idea why and where.

This is all on new PC. I have no Maple ini files or anything like this that can cause this.

Will installing Physics package explicity fixes this?   

 

Update

I think I know why this happens. Not all fixes made by Edgardo S. Cheb-Terrab in last Physics update are included in Maple 2025.2 !

See https://mapleprimes.com/questions/240843-Why-PDEtoolsSolve-Fail-On-This-Equation  where fix is made in Physics  v.1880 which I confirmed in Maple 2025.1.

But now I checked and this problem is back in Maple 2025.2. which means that fix was not merged into Maple 2025.2. How could this happen?


 

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

Physics:-Version();

`The "Physics Updates" package is not available for the version of Maple under development`

SupportTools:-Version();

`The Customer Support Updates version in the MapleCloud is 29 and is the same as the version installed in this computer, created June 23, 2025, 10:25 hours Eastern Time.`

restart;

eq:=D(y)(0)+1 = 0;
solve(eq,D(y)(0));

(D(y))(0)+1 = 0

-1

PDEtools:-Solve(eq,D(y)(0));

Error, (in PDEtools:-Solve) required an indication of the solving variables for the given system

 


 

Download fixed_in_2025_1_but_missing_in_2025_2.mw

So I am hoping that figuring how to install Physics update in Maple 2025.2 will fix the current problem with convert and also bring that old fix for PDEtools:-Solve back into Maple 2025.2.

This is something that Maplesoft should have taken care of.

Update 

Figured how install Physics update package V 1881 and doing so fixed this problem in Maple 2025.2 !

This tells me that all fixes that were in Physics update package were not merged into Maple 2025.2

This worksheet shows that now code works OK, but need to make sure to install Physics update package in Maple 2025.2

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

SupportTools:-Version();

`The Customer Support Updates version in the MapleCloud is 29 and is the same as the version installed in this computer, created June 23, 2025, 10:25 hours Eastern Time.`

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1881 and is the same as the version installed in this computer, created 2025, October 7, 16:4 hours Pacific Time.`

restart;

Original result. No problem

 

print(`convert/diff`);

proc (a, { useeval::truefalse := false }) local ee, zD; ee := `PDEtools/usediff`(a); zD := indets(ee, 'And(function, satisfies(proc (f) options operator, arrow; (op(0, f))::`PDEtools/D/structure` end proc))'); if zD = {} then ee else _Env_t_in_use := `tools/get_symbols`(a); if useeval then zD := map(`convert/diff/D_to_eval@diff`, zD, ':-useEval'); zD := map(proc (u) options operator, arrow; lhs(u) = subsop(0 = eval, rhs(u)) end proc, zD); subs(zD, ee) else subs(map(`convert/diff/D_to_eval@diff`, zD), a) end if end if end proc

T:=D(x)(infinity):

PDEtools:-difforder(convert(T,diff))

1

 

 

 

After call Physics:-Setup. now works OK since Physics update is installed

 

restart;

Physics:-Setup('assumingusesAssume' = false):

print(`convert/diff`);

proc () local ans; ans := usepdiff(args); if has([ans], 'D') then ans := Physics:-OriginalValue["convert/diff"](ans, args[2 .. -1]) end if; ans end proc

T:=D(x)(infinity):

PDEtools:-difforder(convert(T,diff))

1

 

 

 

Download why_code_changes_calling_Physics_maple_2025_2_nov_24_2025_V2.mw

 

I cannot get the ini file to load packages.  It executes fine and the bottom commands work, but the package does not load.
Is there some special way to load packages in the ini file?

Thanks!

with(LinearAlgebra):
    stoperror(all):
    interface(displayprecision = 4);
    _EnvUseHeavisideAsUnitStep := true;  
    Digits := 10;
    printf("Standard Packages Loaded\n");

I've modified the geometry:-intersection example from the help file to show an error which I am struggling to understand.

Why does a redefinition of a geometry object throw an error?

Test_intersection.mw

How to get a 2D plot for the following command: 
error_in_2d_plot_cf_and_nu.mw

The new default in Maple 2025 is to hide the Execution Group Boundaries in Worksheet mode.
In order to make them visible one has to use the menu

View > Show/Hide Contents > Execution Group Boundaries F9

or to press the F9 key.

The question: is there a method to have again visible boundaries by default? 

(Hiding the boundaries does not seem to be a good idea because an execution group can have (it is not clear why!) multiple prompts.)

Dear Maple user, please help me to show two legends inside the plot. Here is the codes attached. restart:
h:=z->1-(delta2/2)*(1 + cos(2*(Pi/L1)*(z - d1 - L1))):
K1:=((4/h(z)^4)-(sin(alpha)/F)-h(z)^2+Nb*h(z)^4):
T1:=Int(K1,z=0..1):
L1:=0.2: F:=10:
d1:=0.2:
T2:=evalf(T1):
T3:=unapply(T2,alpha,Nb,delta2):
plot([seq(seq(T3(alpha, Nb, delta2), Nb in [0.1, 0.2,0.3]), alpha in [Pi/6, Pi/4, Pi/3])], delta2 = 0.02.. 0.1,  titlefont = ["ROMAN", 15], labels = ["δ1", "T3"], labeldirections = ["horizontal", "vertical"], labelfont = ["SYMBOL", 11], linestyle = [solid, solid,solid,longdash, longdash,longdash, spacedash,spacedash, spacedash], symbol = [BOX, CROSS, CIRCLE, BOX, CROSS, CIRCLE, BOX, CROSS, CIRCLE], color = [blue,red, green, blue,red, green,blue,red, green], axes = boxed,size = [1000, 1000]);

I have a problem where there is a true deadtime due to a transport delay.  The delay is in the order of 8 minutes as a fluid flows very slowly down a tube.

I've fit an expression to some measured data and have found the following expression

I'd like to work with this using the Dynamic Systems Package, so I'm trying to build a system from the time-domain expression.  When I try to use the inttrans:-laplace function to convert to the s-domain, I get an overflow.  If I manually express this as a Laplace transform and try to make a system and do a step response, I get this, with an error that "transfer function(s) are not rational-polynomial(s) in s"

Is a delay supported in the Dynamic Systems Package?  If so, could you provide guidance on how?

"Error, (in dsolve/numeric/SC/firststep) unable to evaluate the partial derivatives of f(x,y) for stiff solution", I am trying to solve a system of PDEs in Maple, using discretisation schemes, but keep getting this error. Can anyone help me with this?

i did try and even replace the function w(t) by anotehr thing but is not working  how i can find that and make be answer of my pde?

k1.mw

How can find thus parameters 

Dr.D-problem.mw

In space, how can we find the coordinates of the three vertices of a triangle that is neither right-angled nor isosceles, such that the coordinates of its vertices, the coordinates of the foot of an angle bisector, the length of that angle bisector are all integers, and the lengths of the sides of the triangle are integers? 

I tried 

https://drive.google.com/file/d/1xOMxTCv3lC9RiKpwazerQ3D6WxeXLwJ-/view?usp=sharing

a million time i try to figure out how i can get this plot ? why my graph  in countor is not same the 3D plot? where is problem?

Bgraph1.mw

I am getting an error when trying to pull my value for M_a out of the solver.  See screenshot below.  Full sheet attached.H.Beam_Calcs_Rev00C.flow

I know my sheet is messy so hopefully someone can still understand enough to help me.  The sheet isnt extremely wrong so I'm not sure why I am getting this. I am still new to Maple Flow and learning the tricks of the syntax has been a bit of a struggle

1 2 3 4 5 6 7 Last Page 3 of 2443