Group Abstract Group Abstract

Message Boards Message Boards

1
|
6.1K Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Can't Set MaxRecursion Higher Than 15 in ParametricPlot

Posted 10 years ago

I am trying to get a really detailed plot with ParametricPlot, and MaxRecursion -> 15 doesn't quite cut it. I get the following error when trying MaxRecursion ->16.

enter image description here

Why is it limited to 15 and how can I change the limit? I looked in Preferences but could find anything.

POSTED BY: Bryan Lettner
3 Replies

Basically what the recursion does it looks at the local curvature and decides if the line drawn is 'good' enough or needs refinement, if so, the lines is divided in two.

So what maxrecursion -> 15 means, is that between 2 plotpoint is should be (at most) be divided up to 2^15 = 32000 times!! This is not what you want to use maxrecursion for.

You want to use maxrecursion if your function shows generally very smooth behavior but only at some point a very 'curvy' behavior, so that can be corrected there. If your function is generally curvy everywhere, it is better to increase plotpoints, and put maxrecursion to 2 or 3 or so (low value). To be honest, I've never (in 12-13 years or so) i've never used (or seen used) maxrecursion higher than 4. That basically means that function is 16x more curvy at some particular point than the rest. Of course this could happen, but very unlikely I would say!

POSTED BY: Sander Huisman

My guess is that since you can increase PlotPoints ad infinitum, the thinking is that MaxRecursion is for limited extra local refinement.

POSTED BY: Michael Rogers
Posted 10 years ago

Thanks Michael. Yes, increasing PlotPoints helps quite a bit. I've been looking for the optimal combination of PlotPoints and MaxRecursion to maximize detail and minimize computation time. I thought it would be useful to try raising MaxRecursion even higher, since large PlotPoints takes a long time as well. If anyone knows of a way raise the MaxRecursion limit, please post :)

POSTED BY: Bryan Lettner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard