Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def search_index(array, x):
- for i in range(len(array)) :
- if abs(array[i] - x) < 0.01 :
- return i
- return 0
- t0 = search_index(t, 0.502)
- fig = plt.figure()
- ax = fig.add_subplot(111)
- surf = ax.plot(x, y[:, t0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement