docstring for normed_data
(x1list, y1list, ax_ymax)
| 450 | |
| 451 | |
| 452 | def ax_normed_data(x1list, y1list, ax_ymax): |
| 453 | '''docstring for normed_data''' |
| 454 | unit = ax_ymax / max(abs(y1list)) |
| 455 | nxlist = [] |
| 456 | nylist = [] |
| 457 | for i in range(len(y1list)): |
| 458 | if y1list[i] != 0: |
| 459 | nxlist.append(x1list[i]) |
| 460 | nylist.append(y1list[i]) |
| 461 | nylist = np.abs(np.array(nylist)*unit) |
| 462 | return nxlist, nylist |
| 463 | |
| 464 | |
| 465 | def plot_contribution(ax, bins, v, style): |