[split] Python error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: [split] Python error (/thread-14861.html) |
[split] Python error - jazzy - Dec-20-2018 _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 RE: [split] Python error - nilamo - Dec-20-2018 (Dec-20-2018, 05:57 PM)jazzy Wrote: # fig = plt.figure(figsize=(20,8)) Does that not work? |