8
$\begingroup$

Bug affecting (at least) Mathematica 11.0.0.0 to 11.2 for Win7


Trying to draw a 2D line on a 3D plot starts to behave strangely as I let the line get long. Is the following a bug, or am I doing something wrong? (This is a minimal working example of an issue encountered in a more complicated situation)

plot = Plot3D[{x^2 + y^2}, {x, -10, 10}, {y, -10, 10}];
line = ParametricPlot3D[{0, 0, t}, {t, -1*^5, 1*^5}, PlotStyle -> Thick];
Show[plot, line]

power=5 line works

Changing the length of the line...

plot = Plot3D[{x^2 + y^2}, {x, -10, 10}, {y, -10, 10}];
line = ParametricPlot3D[{0, 0, t}, {t, -1*^10, 1*^10}, PlotStyle -> Thick];
Show[plot, line]

power=10 line bugged

Further, when the plot is then rotated along the z-axis the displayed plane does not rotate with the rest of the plot space. It just stretches to always reach the edges of the box. Rotating it along the x- or y-axes does rotate the plane. Something seems extremely fishy here.

$\endgroup$
10
  • $\begingroup$ On Mac with 11.0.1 I don't see the strange behavior shown in the second plot. Both look almost the same here, except that the second plot has a small and not fully rendered piece of the line sticking out above the 3D box of the plot. One thing I changed system-wide on my Mac that could have an influence is described here. What is your OS? $\endgroup$
    – Jens
    Jul 6, 2017 at 16:32
  • $\begingroup$ @Jens I'm working on Win 7 with Mathematica 11.0.0.0 $\endgroup$
    – avikarto
    Jul 6, 2017 at 16:50
  • $\begingroup$ OK, I guess then it would be good to hear from Windows users if this is a bug that has perhaps been fixed in the newer versions... $\endgroup$
    – Jens
    Jul 6, 2017 at 17:01
  • $\begingroup$ I upgraded to mathematica 11.1.1.0 and the issue persists. $\endgroup$
    – avikarto
    Jul 6, 2017 at 17:45
  • 1
    $\begingroup$ @AlexeyPopkov Wolfram support confirmed the bug, and passed the report to the developers. $\endgroup$
    – avikarto
    Feb 23, 2018 at 14:36

2 Answers 2

1
$\begingroup$
$VersionNumber = 11.1

I was having a similar graphical issue and was trying your workaround. I'm running the latest version of MMA on the cloud and unforuately I'm not able to reproduce your error. Hopefully this helps.

plot = Plot3D[{x^2 + y^2}, {x, -10, 10}, {y, -10, 10}];
line = ParametricPlot3D[{0, 0, t}, {t, -1*^10, 1*^10}, PlotStyle -> Thick];
Show[plot, line]

graphic example

$\endgroup$
1
$\begingroup$
line = Graphics3D[InfiniteLine[{0, 2, 10}, {1, 1, 40}]];

If use this the problem does not happen.

$\endgroup$
2
  • $\begingroup$ But not the same plot. $\endgroup$
    – bbgodfrey
    Sep 23, 2017 at 17:58
  • $\begingroup$ mo, it's not same sorry. I have same issue and tries to bypass the ParametricPlot to understand $\endgroup$ Sep 23, 2017 at 18:34

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.