Skip to main content
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:

The reason why the mesh appears in those questions is that the polygons are transparent and they overlap slightly (by a pixel or so).


Test code:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:

The reason why the mesh appears in those questions is that the polygons are transparent and they overlap slightly (by a pixel or so).


Test code:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:

The reason why the mesh appears in those questions is that the polygons are transparent and they overlap slightly (by a pixel or so).


Test code:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

added 117 characters in body
Source Link
Szabolcs
  • 238.9k
  • 32
  • 653
  • 1.3k

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:

The reason why the mesh appears in those questions is that the polygons are transparent and they overlap slightly (by a pixel or so).


Test code for the unconvinced:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:


Test code for the unconvinced:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:

The reason why the mesh appears in those questions is that the polygons are transparent and they overlap slightly (by a pixel or so).


Test code:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

added 418 characters in body
Source Link
Szabolcs
  • 238.9k
  • 32
  • 653
  • 1.3k

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:


Test code for the unconvinced:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:

This is a Mac-only issue and it's present in earlier versions too (not just 9), though with rectangles it manifests itself less commonly in v8 than in v9. To solve the problem, use the option Method -> {"TransparentPolygonMesh" -> True} in Graphics to get rid of this problem. It will also disable antialiasing.

Posts with the same problem, appearing in a different form:


Test code for the unconvinced:

g = Graphics[{Opacity[.5], Red, Rectangle[{0, 0}, {.5, 1}], Blue, Rectangle[{.5, 0}, {1, 1}]}] Magnify[#, 4] & /@ {Rasterize[g, "Image", ImageSize -> 50], Rasterize[Show[g, Method -> {"TransparentPolygonMesh" -> True}], "Image", ImageSize -> 50]} 

enter image description here

Source Link
Szabolcs
  • 238.9k
  • 32
  • 653
  • 1.3k
Loading