a white region is shown, at which the value of function being plotted should be 1.
However, I also evaluate the value in that region, which is 1. Besides, if I save it as xdmf and read it by paraview, everything is fine.
The following is my import if that matters,
from future import print_function
from fenics import *
from dolfin import *
from mshr import *
import numpy as np
from tqdm import tqdm
import shutil
import matplotlib.pyplot as plt
%matplotlib inline
Besides, I am using docker installation of fenics,
The original problem can easily be solved by changing the plot command to
plt.colorbar(plot(k, extend='max'))
These white regions frequently occur where functions are close to discontinuous. I assume that the large gradients will cause some kind of overshoots within the interpolation scheme. Interpolated function values that exceed the largest vertex values within a plot are not filled by default and thus remain white. The above keyword argument changes this behaviour.