3
$\begingroup$

Bug introduced in version 11.0


Using simple cuboids in BarChart3D results in flipped colours for negative bars. Any ideas how to fix this simply?

cuboid = Graphics3D[Cuboid[{0, 0, 0}, {1, 1, 1}],
   Boxed -> False, ImageSize -> 30, ViewPoint -> {1.3, -2.4, 2},
   ViewVertical -> {0, 0, 1}];

enter image description here

BarChart3D[{1, 2, -3, 4}, ChartStyle -> {Red, Green, Red, Yellow},
 ChartElements -> cuboid, ViewPoint -> {-1, -2, 0.5}]

enter image description here

The reversed shadows really mess up the roundedCuboids.

BarChart3D[{1, 2, -3, 4}, ChartStyle -> {Red, Green, Red, Yellow},
 ChartElements -> Graphics3D[{roundedCuboid[{0, 0, 0}, {1, 1, 1}, 1/8]}],
 ViewPoint -> {-1, -2, 0.5}]

enter image description here

Created using Mathematica 11.0.1 on Windows 10.

$\endgroup$
  • $\begingroup$ both look fine in v10.1 $\endgroup$ – george2079 Mar 16 '17 at 15:45
  • $\begingroup$ @george2079 Thanks George. Also ok in v7.0.1 $\endgroup$ – Chris Degnen Mar 16 '17 at 15:57
  • $\begingroup$ Reproduced with version 11.0.1 on Windows 7 x64, with version 10.4.1 on the same system it is OK. The Graphics3D expressions are identical in the both versions. So it is a Graphics3D rendering bug introduced in version 11. $\endgroup$ – Alexey Popkov Mar 17 '17 at 6:49
  • $\begingroup$ Same problem with OSX, MMA v 11.0.1. $\endgroup$ – SquareOne Mar 17 '17 at 9:00
  • $\begingroup$ Reported as a bug. $\endgroup$ – Chris Degnen Mar 17 '17 at 9:03

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.