in matplotlib, the set_aspect ('equal') parameters override the fill settings (white border). As a result, the output is a square square filled with spaces. How to override this behavior, so the set_aspect parameter applies only to the contour plot, and not throughout the output.
import matplotlib.pyplot as plt plt.axes().set_aspect('equal')
or
CS = plt.contourf(xi,yi,zi,30,cmap=plt.cm.jet,antialiased=True,alpha=0.4,norm=c_scale,aspect='equal')
source share