Dec-20-2018, 05:57 PM
_gDF = pdf.DataFrame(listValue)
_gDF = _gDF.transpose()
_gDF.columns = listKey
# plt.figure(); _gDF.plot();
# fig = plt.figure(figsize=(20,8))
# fig.add_subplot(111, ylabel='CUM PNL ',xlabel = 'Trades', title = 'COMBI-GRAPH')
# plt.grid(True)
# plt.plot(_gDF.index, _gDF)
ax = _gDF.plot()
fig = ax.get_figure()
# print(type(ax))
# plt.figure(figsize=(20,8))
# fig.add_subplot(111, ylabel='CUM PNL ',xlabel = 'Trades', title = 'COMBI-GRAPH')
plt.grid(True)
plt.xticks(rotation = "horizontal")
graphName = '{}{}-{}.png'.format(self.__graphPath, instrument, 'COMBI-GRAPH')
fig.savefig(graphName)
plt.close(fig)
return graphNameI wanted to know how we can increase fig size
