How can I plot hysteresis in matplotlib?,"ax = fig.add_subplot(111, projection='3d')"