How can I plot hysteresis in matplotlib?,fig = plt.figure()