MATLAB: Changing the histogram edge color from the default green gradient.

histogram green gradient edge color

Hi Guys, I am having problems with the standard histogram function in Matlab 2015b.
The edges are colored with a green gradient and I cannot change it.
Example: x = randn(10000,1); h = histogram(x);
This is the output:
According to Documentation (<>) I should get black edges. h.EdgeColor is [0, 0, 0] by the way and changing has no influence on the appearence.

Best Answer

  • The problem is with the renderer. Please try the following:
    opengl software
    and then re-plotting.