#### bug in CMaple generating JPEGs, Maple 7 and 8 (31.3.02)

##### Moore, Chuck

I’ve been using CMaple to crunch data and create text output for some time now. It does a really good job at that. However, I’ve run into a problem in trying to have CMaple generate a plot as a ”JPEG”.

I’m sending a series of commands to CMaple. CMaple seems to process the commands OK (i.e. no error messages arise), however no ”JPEG” is created. Yet, I can run (i.e. cut/paste) the same commands in interactive Maple and get a ”JPEG”.

##### Robert Israel (1.4.02)

Maybe the plot ﬁle is being put in a directory where you didn’t think of looking for it. It seems there’s a bug in command-line Maple 7 (at least under Unix): the ”currentdir” command does not inﬂuence the placement of jpeg ﬁles. For example:

... and the plot ﬁle is found in /home/israel, not in /home/israel/tmp. This bug doesn’t seem to aﬀect interactive Maple, or Maple 6.

##### Moore, Chuck (1.4.02)

The currentdir() command does not seem to work under (Windows 2000 - Maple7) CMaple. Further, the plotsetup and plot commands, which you gave as samples (below), work ﬁne on my interactive Maple system. However, the exact same commands DO NOT work under CMaple.

I would ask of anyone who is currently running Maple7 to try and run (just) the plotsetup and plot commands of your sample and let me know if they work (i.e. produce a plot).

##### Robert Israel (1.4.02)

The behaviour in command-line Maple 7 under Windows 95 is similar to under Linux. The plot is produced, in my case in the directory "F:\\Program Files\\Maple 7", which is the current one (as shown by currentdir()) when Maple is started. It appears to be identical to the plot produced by the same commands in worksheet Maple.

##### Moore, Chuck (1.4.02)

Hmmmmm.

I did the following on command-line Maple7 (Windows 2000) :

... and got nothing.

On top of that, the currentdir command seems to be non-functional:

Again, the interactive Maple works ﬁne.

##### Moore, Chuck (12.4.02)

Typing the command "libname;" returned "c:/lib" .

On my workstation, this directory doesn’t exist. Maple 7 is installed in C:/Program Files/Maple 7.

I dug up the information on the ’libname’ function through GUI Maple : my MAPLE environment variable was not set. The "c:/program files/maple 7/bin.wnt" directory was identiﬁed in the PATH variable though, which was why CMAPLE would start but the libname function returned only "c:/lib".

I deﬁned (i.e. permanently set) the MAPLE environment variable to "c:/program files/maple 7/". Then, I veriﬁed that this ﬁxed the problem by creating a plot using the test commands (below).