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) 

test code work (in case pyplot hold deprecated) test code work (in case pyplot hold deprecated)


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -