Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Python error
#1
 _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 graphName
I wanted to know how we can increase fig size
Reply
#2
(Dec-20-2018, 05:57 PM)jazzy Wrote: # fig = plt.figure(figsize=(20,8))

Does that not work?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Name error ktck001122 3 2,730 Sep-02-2019, 01:50 AM
Last Post: ktck001122
  [split] Python beginner: Weird Syntax Error mnsaathvika 1 2,139 Jul-22-2019, 06:14 AM
Last Post: buran
  [split] No Error, and No Output vishal2894 1 1,719 Jul-02-2019, 03:20 PM
Last Post: nilamo
  [split] Name error/is not defined rajkiran 1 3,974 Dec-27-2018, 06:47 PM
Last Post: micseydel
  [split] Web Crawler Error takaa 1 3,677 Feb-17-2017, 11:54 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020