Skip to main content
Copy edited. Fixed the question formation - missing auxiliary (or helping) verb - see e.g. <https://www.youtube.com/watch?v=t4yWEt0OSpg&t=1m49s> (see also <https://www.youtube.com/watch?v=kS5NfSzXfrI> (QUASM)).
Source Link

Why theis there a white vertical line on this DensityPlot?

I'm trying to convert all of my old Mathematica 7.0 codes to Mathematica 13.2, and I'm experiencing some unexpected issues. The following simple code draws a grayscale graphics:

intensity[x_] = (Sin[Pi x/8]/(2 Pi x/10) Cos[Pi x/5 + Pi/3])^2; graphic = DensityPlot[ intensity[x], {x, -3, 3}, {y, -1, 1}, ColorFunction -> GrayLevel, PlotPoints -> {1000, 3} ]; Show[graphic] 

Preview of what this code is doing:

enter image description hereEnter image description here

The issue is the pesky white vertical line in the middle. How tocan I get rid of it? Why is this simple code doing that, with Mathematica 13.2? I never had this, with version 7.0.

Why the white vertical line on this DensityPlot?

I'm trying to convert all of my old Mathematica 7.0 codes to Mathematica 13.2, and I'm experiencing some unexpected issues. The following simple code draws a grayscale graphics:

intensity[x_] = (Sin[Pi x/8]/(2 Pi x/10) Cos[Pi x/5 + Pi/3])^2; graphic = DensityPlot[ intensity[x], {x, -3, 3}, {y, -1, 1}, ColorFunction -> GrayLevel, PlotPoints -> {1000, 3} ]; Show[graphic] 

Preview of what this code is doing:

enter image description here

The issue is the pesky white vertical line in the middle. How to get rid of it? Why is this simple code doing that, with Mathematica 13.2? I never had this, with version 7.0.

Why is there a white vertical line on this DensityPlot?

I'm trying to convert all of my old Mathematica 7.0 codes to Mathematica 13.2, and I'm experiencing some unexpected issues. The following simple code draws a grayscale graphics:

intensity[x_] = (Sin[Pi x/8]/(2 Pi x/10) Cos[Pi x/5 + Pi/3])^2; graphic = DensityPlot[ intensity[x], {x, -3, 3}, {y, -1, 1}, ColorFunction -> GrayLevel, PlotPoints -> {1000, 3} ]; Show[graphic] 

Preview of what this code is doing:

Enter image description here

The issue is the pesky white vertical line in the middle. How can I get rid of it? Why is this simple code doing that, with Mathematica 13.2? I never had this, with version 7.0.

Became Hot Network Question
edited tags
Link
Domen
  • 41.5k
  • 3
  • 58
  • 84
made title more precise
Link
Chris K
  • 20.6k
  • 3
  • 41
  • 79

Why the white vertical line on this graphicsDensityPlot?

added 1 character in body
Source Link
Cham
  • 4.2k
  • 23
  • 40
Loading
Source Link
Cham
  • 4.2k
  • 23
  • 40
Loading