@EllaCrane found that if the result of the Wigner function is all zeros (there were other code errors causing this), the plot & animate functionality tries to make a color / contour range from 0 to 0, which fails. If the min/max of the range is equal, force a range that includes the min/max to let the plot then just be empty (in the case of the zero values).
@EllaCrane found that if the result of the Wigner function is all zeros (there were other code errors causing this), the plot & animate functionality tries to make a color / contour range from 0 to 0, which fails. If the min/max of the range is equal, force a range that includes the min/max to let the plot then just be empty (in the case of the zero values).