10
$\begingroup$

Referring to the method I proposed for Problem with ParametricPlot Mathematica 10.0.2 throws an enigmatic error message:

Plot[Sinc[x], {x, 0, 5}, Method -> {MaxBend -> 1}]

MaxBend::deprec: MaxBend->1 is deprecated and will not be supported in future versions of the Wolfram Language. Use Method->{MaxBend->1} instead.

I don't know if this message is entirely a mistake or if it is really trying to tell me that there is a different form I should be using now. Is this same message generated by 10.1.0? Is there a known different form for MaxBend?

$\endgroup$
14
  • 8
    $\begingroup$ It's probably not a bug, but a bug $\endgroup$ Apr 15, 2015 at 16:23
  • 1
    $\begingroup$ I see it in 10.1 on Win8.1. $\endgroup$ Apr 15, 2015 at 16:45
  • 1
    $\begingroup$ Does the alternative Method -> {Refinement -> {ControlValue -> (* radian angle *) }} still work, tho? $\endgroup$ May 13, 2015 at 0:08
  • 1
    $\begingroup$ Personally, I've always assumed it's a typo, that MaxBend is in fact deprecated, and the message was supposed to point the user to Method -> {Refinement -> {ControlValue -> (*radian angle*) }}. I was hoping someone from WRI would comment on your question, though, to clarify. Have you reported it to WRI? $\endgroup$
    – Michael E2
    Jul 5, 2015 at 18:45
  • 2
    $\begingroup$ It still works without any message for ContourPlot as used in this answer. $\endgroup$
    – Karsten7
    Jul 5, 2015 at 19:00

1 Answer 1

2
$\begingroup$

Earlier invalid assertion redacted.

Some spelunking reveals that the innermost (accessible) plot function called is:

Visualization`Core`Plot

And using this function directly also produces the message:

Visualization`Core`Plot[Sinc[x], {x, 0, 10}, Method -> {"MaxBend" -> 1}]

MaxBend::deprec: MaxBend->7 is deprecated and will not be supported in future versions of the Wolfram Language. Use Method->{MaxBend->7} instead.

I have failed in my attempts to trace the origin of the problem further but I may try again later.

$\endgroup$
2
  • 1
    $\begingroup$ Note that tr2 = With[{gr = 1/GoldenRatio}, Trace[{AspectRatio -> gr, Axes -> True, AxesOrigin -> {0, 0}, Method -> {"MaxBend" -> 1}, PlotRange -> {{0, 10}, {-0.21723357397428536, 0.999999999999993}}, PlotRangeClipping -> True, PlotRangePadding -> {Scaled[0.02], Scaled[0.02]}}]]; tr2 === Query[35, 1][tr] returns True. How do you deduce that "MaxBend" is being duplicated? It seems to me that the multiple instances could be the result of the evaluation chain. I note that some things are not evaluated to very bottom of the expression tree, so I might be wrong. Definitely confused. $\endgroup$
    – Michael E2
    Jul 10, 2015 at 0:29
  • $\begingroup$ @MichaelE2 Facepalm -- no, I think you're quite right and I'm crazy. Trying too hard! $\endgroup$
    – Mr.Wizard
    Jul 10, 2015 at 0:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.