7.1. Demo

An example of very basic usage of the hysteresis package.

 1"""
 2An example of very basic usage of the hysteresis package.
 3"""
 4
 5import numpy as np
 6import hysteresis as hys
 7
 8t  = np.linspace(0,4,1000)*np.pi
 9x  = np.sin(t)
10y  = np.cos(t)*t
11xy = np.column_stack([x,y])
12
13
14myHys = hys.Hysteresis(xy)
15myHys.plot(showReversals = True)
16