Question: plotsetup problem

I use the following commands to export a graph to a file:

plotsetup(gif, plotoutput=cat(filefolder,examplenr,".gif")):
print(display([pol],color=grey,scaling=constrained,axes=none,view=[0..100,0..100])):

filefolder is defined as a complete path: filefolder:="D:/TopUp/models/vergelijking/":
And pol is a pol:=plottools[polygon](polygonlist,color=grey): 

This works fine when I use it directly in a Maple worksheet.

However, if I save it in a mpl-file and read it from a different worksheet, it just plots the graph in the worksheet, not in the file anymore.

Could anyone help, please?

Please Wait...