You could try to convert values to floats afterwards because a float of an int 0 should display 0.0?
So you could try matrix.astype(float)?