How can I plot hysteresis in matplotlib?,plt.show()