python - I am trying to plot equity of profit and loss and highlight portion of equity based on some condition -
my equitylist list of equity. want plot equitylist , hightlight portion of equity red color based on loop. when run code, code doesn't show plot.
chart = plt.figure() plt.plot(range(0, len(abclist)), abclist, 'blue', linewidth=1.5) plt.hold(true) p in pp: plt.plot(p[0], p[1], 'r', linewidth=0.2) plt.title('abc') plt.ylabel('a') plt.xlabel('b') plt.hold(false) plt.show(chart)
Comments
Post a Comment