Question: exporting plots to files

Hi:


I am trying to save plots to files in the batch mode (or when running maple from the terminal). The simple code below works fine from the gui interface, but when executed from the terminal, the fonts are not adjusted. I have tried exporting to other formats as well (eps, jpeg). Any ideas how to get around it?? It is problematic for me because I need to produce density plots with large data sets. Ideally I would like to export in the eps format, but these large data sets are not practical and maple chokes during exporting. So instead I export to gif, but enlarge the image, which then looks respectable when it is shrunk. Of course this means that I have to also enlarge the font size. Doing this works ok from the GUI, but not from the terminal shell (where I prefer to work).

Please let me know if you have any ideas.
Thanks,
peter


restart:
with(plots):

savePlotGIF:=proc(v_p, v_fileName, v_w:="750", v_h:="450")
plotsetup('gif', plotoutput=cat(v_fileName, ".gif"), plotoptions=cat("quality=100,portrait,noborder,width=",v_w,",height=",v_h));
print(display(v_p));
plotsetup(default):
end proc:

p:=plot(sin(x), x=0..10, labels=["this is x", "f(x)"],  title="this is a title", font=[TIMES, ROMAN, 28], titlefont=[HELVETICA, BOLD, 22]);
savePlotGIF(p, "./myplot", "1000", "1000");

Please Wait...