4

There is an odd white mesh that appears on top of any contour plot I make.

ContourPlot[x + 2 y, {x, 80, 300}, {y, 50, 100}]

enter image description here

Any ideas on how I get rid of this? I've tried a new notebook with just that command but it does not go away.

Just adding that this is also happening in the ContourPlot help page so I think some global variable has been set that is doing this. Restarting Mma has not helped.

Version 10.2 on Win 8.1 64-bit.

Added output of Options

Options[ContourPlot]
{AlignmentPoint -> Center, AspectRatio -> 1, Axes -> False, 
 AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> {}, 
 Background -> None, BaselinePosition -> Automatic, BaseStyle -> {}, 
 BoundaryStyle -> None, BoxRatios -> Automatic, ClippingStyle -> None,
  ColorFunction -> Automatic, ColorFunctionScaling -> True, 
 ColorOutput -> Automatic, ContentSelectable -> Automatic, 
 ContourLabels -> Automatic, ContourLines -> True, 
 Contours -> Automatic, ContourShading -> Automatic, 
 ContourStyle -> Automatic, CoordinatesToolOptions -> Automatic, 
 DisplayFunction :> $DisplayFunction, Epilog -> {}, 
 Evaluated -> Automatic, EvaluationMonitor -> None, 
 Exclusions -> Automatic, ExclusionsStyle -> None, 
 FormatType :> TraditionalForm, Frame -> True, FrameLabel -> None, 
 FrameStyle -> {}, FrameTicks -> Automatic, FrameTicksStyle -> {}, 
 GridLines -> None, GridLinesStyle -> {}, ImageMargins -> 0., 
 ImagePadding -> All, ImageSize -> Automatic, 
 ImageSizeRaw -> Automatic, LabelStyle -> {}, LightingAngle -> None, 
 MaxRecursion -> Automatic, Mesh -> None, MeshFunctions -> {}, 
 MeshStyle -> Automatic, Method -> Automatic, 
 PerformanceGoal :> $PerformanceGoal, PlotLabel -> None, 
 PlotLegends -> None, PlotPoints -> Automatic, 
 PlotRange -> {Full, Full, Automatic}, PlotRangeClipping -> True, 
 PlotRangePadding -> Automatic, PlotRegion -> Automatic, 
 PlotTheme :> $PlotTheme, PreserveImageOptions -> Automatic, 
 Prolog -> {}, RegionFunction -> (True &), RotateLabel -> True, 
 TargetUnits -> Automatic, Ticks -> Automatic, TicksStyle -> {}, 
 WorkingPrecision -> MachinePrecision}
Edmund
  • 42,267
  • 3
  • 51
  • 143
  • Looks like a "TransparentPolygonMesh" mesh problem, but I cannot reproduce it. Possible duplicate(?): http://mathematica.stackexchange.com/questions/1400/removing-unwanted-appearance-of-underlying-mesh – Michael E2 Sep 06 '15 at 14:09
  • @MichaelE2 My Options[ContourPlot] does not have a "TransparentPolygonMesh" in it. I'll add the output to the questions. – Edmund Sep 06 '15 at 14:27
  • The usage for the option is through Method: Method -> {"TransparentPolygonMesh" -> True} or False. It won't show up in Options[]. Here is an example of its use in ContourPlot: http://mathematica.stackexchange.com/q/20445/ – Michael E2 Sep 06 '15 at 14:52
  • @MichaelE2 I saw a post showing that it could be due to Antialiasing settings as well. In the end I just did a clean start with Ctrl + Shift to wipe whatever was mucking with it in the background. I have to rest some preferences but that is better then having to include an undocumented option in every ContourPlot I need. – Edmund Sep 06 '15 at 15:38
  • 1
    Cannot reproduce with version 10.2 on Windows 7 x64. – Alexey Popkov Sep 06 '15 at 15:41
  • 2
    There is no white mesh with the above Option[ContourPlot]; Windows 10 and Mma 10.2 –  Sep 06 '15 at 17:21
  • I cannot reproduce this problem either (MMA 10.2 on Win7-64). @Edmund what version are you using? – MarcoB Sep 06 '15 at 18:44
  • 1
    I'm voting to close this question as off-topic because the problem could not be reproduced. – MarcoB Sep 07 '15 at 04:59
  • Although I unfortunately (or fortunately) can't reproduce it either, maybe you can work around your problem by using one of the aswers here – Jens Sep 07 '15 at 05:34
  • 2
    @MarcoB Please give a larger benefit of the doubt on reproducibility. In this case for example I can easily reproduce the problem. Not everyone has the same platform and system configuration and many localized idiosyncrasies appear as a result. – Mr.Wizard Sep 07 '15 at 07:08

1 Answers1

5

Closely related:

I can easily reproduce your problem in 10.1 under Windows 7 merely by setting:

SetOptions[$FrontEndSession, Antialiasing -> True]

Example of output then produced:

mwe of SetOptions[$FrontEndSession, Antialiasing -> True]

This is a case of anti-aliasing gone wrong, and it is normally handled correctly by the default setting of Automatic:

SetOptions[$FrontEndSession, Antialiasing -> Automatic]

If this fixes your problem change $FrontEndSession to $FrontEnd to make the setting persist.

If setting Automatic does not fix the problem the cause it very likely the same anyway but from a different source. Do you have a video card set to force AA in all applications? Try changing that to "application preference" or similar.

Teun Zijp
  • 283
  • 2
  • 7
Mr.Wizard
  • 271,378
  • 34
  • 587
  • 1,371
  • So it seems my question is a duplicate as I didn't know exactly what to search for. – Edmund Sep 07 '15 at 10:42
  • @Edmund That's OK, and thanks for searching before posting. Your question will probably help make searching easier for others with the same issue. Did SetOptions[$FrontEnd, Antialiasing -> Automatic] fix the problem? – Mr.Wizard Sep 07 '15 at 19:38
  • Yes, I had upgrading both my graphics drivers. I think it was from the Intel driver as I have upgraded the Nvidia ones many times before without issue. Also, the default is the Intel on board GPU so Mma was running on that. – Edmund Sep 07 '15 at 19:56