 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Run out of memory
| [MUG] Run out of memory |
|
Author: Robert Fischer
Posted: Thu, 31 Oct 2002 15:58:34 +0100
|
>> From: Robert Fischer "rfischer"
Hello Maple users!
At first I work with Maple 5 Release 5 under Unix.
I wrote a loop aiming to do the following:
Maple reads in data produced by an external C programm using the
readdata-command. After some computation and conversion of the data in
a list of list of points the data is given to the surfdata-command to
yield a 3d plot. This plot is saved in the jpg-format and put into a
directory using interface and plotoutput commands.
This loop should serve to produce hundreds of pictures of my data.
After about 20 goings of my loop the following error occurs: could not
fork process. I have found out that Maple has used all memory my computer
provides. Have you an idea how to avoid this problem ?
The second problem which may be connected to my problem mentioned above is
: Within the loop all results and assignments are presented on the screen.
I did not put : behind the od of the loop in order to prevent the
presentation on the screen because if I did so my pictures would not be
produced in the jpeg and put into the directory.
Do you have a suggestion how to produce the plots avoiding the screen
output?
Thank for your suggestions.
Yours,
Robert
|
| [MUG] Re: Run out of memory |
|
Author: Maple User Group
Posted: Mon, 4 Nov 2002 10:21:38 -0500 (
|
>> From: Maple User Group "maple_gr"
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
From: "Dr Francis J. Wright" "F.J.Wright"
To: "maple-list"
Subject: Run out of memory
Date: Fri, 1 Nov 2002 16:41:30 -0000
From: "Robert Fischer" "rfischer"
| At first I work with Maple 5 Release 5 under Unix.
| I wrote a loop aiming to do the following:
| Maple reads in data produced by an external C programm using the
| readdata-command. After some computation and conversion of the data in
| a list of list of points the data is given to the surfdata-command to
| yield a 3d plot. This plot is saved in the jpg-format and put into a
| directory using interface and plotoutput commands.
| This loop should serve to produce hundreds of pictures of my data.
| After about 20 goings of my loop the following error occurs: could not
| fork process. I have found out that Maple has used all memory my computer
| provides. Have you an idea how to avoid this problem ?
|
| The second problem which may be connected to my problem mentioned above is
| : Within the loop all results and assignments are presented on the screen.
| I did not put : behind the od of the loop in order to prevent the
| presentation on the screen because if I did so my pictures would not be
| produced in the jpeg and put into the directory.
| Do you have a suggestion how to produce the plots avoiding the screen
| output?
I wouldn't use Maple for this kind of plotting; I would use something like
gnuplot (which is free). Maple graphics are excellent for investigating
data generated within Maple, but trying to use Maple just as a graphics
back-end does not seem like a good idea to me.
Francis
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Fri, 1 Nov 2002 08:39:51 -0800 (PST)
From: Robert Israel "israel"
To: "maple-list"
Subject: Run out of memory
Worksheets with lots of 3D plots can sometimes take up inordinate amounts
of memory under Unix. But there's no need to display the plots, or any other
results, on the screen. All you have to do is something like this:
for ... do
...
plotsetup(jpeg, plotoutput=..., plotoptions=...);
print(surfdata(...));
...
od:
plotsetup(default);
Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Fri, 01 Nov 2002 11:10:43 -0800
From: Allan Wittkopf "awittkop"
Subject: Run out of memory
To: "maple-list"
Could you send us the code for this problem.
Thanks,
Allan
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Sat, 2 Nov 2002 02:17:25 -0500 (EST)
From: Carl Devore "devore"
To: "maple-list"
Subject: Run out of memory
You mention using plotoutput, but not plotsetup. That might be the
problem. I have not tested the following in Maple 5, but it works in
Maple 8 without any appreciable build up of memory and without any screen
display:
R:= rand(-50..50):
for n to 100 do
plotsetup(jpeg, plotoutput= sprintf("%d.jpg", n));
print(plots[surfdata]([seq([seq([i,j,R()], i= 1..50)], j= 1..50)]))
od:
|
Previous by date: [MUG] Re: filter transformations -- basic algebraic manipulations, Maple User Group
Next by date: [MUG] operator overloading, Jarausch
Previous thread: [MUG] new to Maple, how to load a library, Thomas Wieder
Next thread: [MUG] operator overloading, Jarausch
|
|
|