MCPcopy Index your code
hub / github.com/QuantFans/quantdigger / ax_normed_data

Function ax_normed_data

quantdigger/widgets/mplotwidgets/stock_plot.py:452–462  ·  view source on GitHub ↗

docstring for normed_data

(x1list, y1list, ax_ymax)

Source from the content-addressed store, hash-verified

450
451
452def 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
465def plot_contribution(ax, bins, v, style):

Callers 1

plot_contributionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected