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