I can usually crash the Mathematica Kernel by using Table
to generate a List
of ParametricPlot
s, as follows:
testpara[α_] :=
ParametricPlot[
{
{Cos[θ], Sin[θ]},
{2 Cos[α] + Cos[θ],
2 Sin[α] + Sin[θ]},
{r, 0}
},
{θ, 0, 2 π},
{r, 1, 2},
PlotRange -> 3,
Frame -> False
]
Table[testpara[α], {α, 0, 2. π - π/36, π/36.}]
The current "high" number of plots, with a step size of π/36, crashes the Kernel every time. Starting with a large step size (eg. π/6) often works well on first execution, but also crashes if I execute the cell again. The smaller the step size (leading to a larger number of plots in the List
), the higher the regularity of the Kernel crashes.
- Surely a list containing 12 ParametricPlots isn't too much?
- How can I prevent this crashing behavior?
(For example, is it something I can code differently, or do I need to change available memory in Options somewhere or ...?)
ParallelTable
shaves at least a couple of seconds off the execution time on my system. Is there any difference if you use that instead ofTable
in your case? $\endgroup$Table
toDo
it runs through but any attempt to retain all the plots (Reap/Sow
,Append
, etc ) result in a kernel quit with no error message $\endgroup$