6
$\begingroup$

Bug introduced in 8.0.4 or earlier and persists through 11.1.1. Affects only Windows.

I just tried to plot Tan[t]^4 as a polar plot and got... nothing.

PolarPlot[Tan[t]^2, {t, 0, 2 Pi}]

Works:

enter image description here

PolarPlot[Tan[t]^4, {t, 0, 2 Pi}]

Doesn't work:

enter image description here

Changing the 4 to a 4. to enforce numerical results doesn't change anything.

Am I doing something wrong? Is this a bug? In case it matters:

$Version
"11.0.0 for Microsoft Windows (64-bit) (July 28, 2016)"
$\endgroup$
  • 1
    $\begingroup$ PolarPlot[Tan[t]^4, {t, 0, 2 Pi}] works in 11.1 for macOS for me. Are you able to upgrade? $\endgroup$ – user6014 Apr 6 '17 at 14:05
  • 2
    $\begingroup$ @user, well, Cases[Normal[PolarPlot[Tan[t]^4, {t, 0, 2 π}]], Line[l_] :> l, ∞][[1]] shows that a line is getting plotted, but a look at the values of the coordinates tells me that the automatic PlotRange determined is way off the actual extent of the curve. $\endgroup$ – J. M. is away Apr 6 '17 at 14:22
  • 1
    $\begingroup$ PolarPlot[Tan[t]^3, {t, 0, 2 Pi}, PlotPoints -> 50] /. x_Real :> Clip[x, {-500, 500}] an extremely stupid solution, but possibly works sometimes, at least here...... some extra optimization of Clip's value may make the process more automated. $\endgroup$ – Wjx Apr 6 '17 at 14:23
  • 2
    $\begingroup$ PolarPlot[Tan[t]^4, {t, 0, 2 Pi}, PlotPoints -> 100, MaxRecursion -> 1] $\endgroup$ – chuy Apr 6 '17 at 15:08
  • 1
    $\begingroup$ Wolfram support have confirmed that this is a bug, so I've added in the usual header. They've also suggested MaxRecursion -> 1 as a workaround. $\endgroup$ – Martin Ender Apr 10 '17 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.