Bug fix: Erroneous warning from plotsetup

A warning message is produced when you use plotsetup to change the plot device, but the device you specified is not one of those that plotsetup has listed.

> plotsetup(foo);

plotsetup: warning unknown device

Unfortunately, in Release 4 on some platforms several device names were omitted from this list.

> plotsetup(inline);

plotsetup: warning unknown device

> plotsetup(window);

plotsetup: warning unknown device

> plotsetup(jpeg,plotoutput=`foo.jpg`);

plotsetup: warning unknown device

These are legitimate plot devices, so the warning message is erroneous. The plot device should be set correctly, despite the warning. If you really specify a nonexistent device, an error message will result when you try to plot to this device.

> plotsetup(foo);

plotsetup: warning unknown device

> plot(x,x=0..1);

Plotting error, no plot device driver for plotdevice=foo

The bug (together with some others) is fixed in Library Patch Level 2, available from Maple (http://www.maplesoft.com/patches.html). Alternatively, you can use the following code to fix the bug. It may be copied to your initialization file ( maple.ini in the current directory for Windows).

> `plotsetup/devices`[jpeg]:= [jpeg,`plot.jpg`,[],[],``]:
`plotsetup/devices`[inline]:=[inline, terminal,[],[],``]:
`plotsetup/devices`[window]:=[window, terminal,[],[],``]:

See also:

interface , plot(device) , plotsetup , Plotting error, no plot device driver for ... , Plotting to a file or a printer