18 lines
312 B
Python
18 lines
312 B
Python
import numpy as np
|
|
|
|
|
|
X = np.arange(100) / 10
|
|
|
|
exampledata = {
|
|
"sine": [X, np.sin(X)],
|
|
"cosine": [X, np.cos(X)],
|
|
"exp": [X, np.exp(X)],
|
|
"log": [X, np.log(X+1)]
|
|
}
|
|
|
|
# due to the appending of xy pairs, data needs to be transposed
|
|
exampledata = {k: zip(*v) for k, v in exampledata.items()}
|
|
|
|
|
|
|