Check out this example from the matplotlib gallery for outline graph functionality. By changing levels in a script, as well as changing some links, you can:
plt.figure()
CS = plt.contour(X, Y,log_mu,levels = [-7,-8],
colors=('k',),linestyles=('-',),linewidths=(2,))
CSF = plt.contourf(X, Y,log_mu)
plt.clabel(CS, fmt = '%2.1d', colors = 'k', fontsize=14) #contour line labels
CB = plt.colorbar(CSF, shrink=0.8, extend='both')
plt.xscale('log')
plt.yscale('log')
plt.show()

mtadd source
share