1
plt.figure(figsize=(20,5)) 
sns.lmplot(x='raceId', y='duration', data=newdf)
plt.title('title')  
plt.show()

Figure won't change size. I used plt.figure(figsize()) earlier for a different plot and it worked fine. Will I need to make a new plt?

CodeMonkey
  • 22,825
  • 4
  • 35
  • 75
JoeMama786
  • 43
  • 5
  • Is the target size bigger than your screen? – Mad Physicist Dec 23 '21 at 17:30
  • 1
    `sns.lmplot` is a figure-level function, creating its own figure consisting of one or more subplots. You can use `height=.., aspect=...` to change the height and width of individual subplots. – JohanC Dec 23 '21 at 17:33
  • 1
    ["Specifying figure sizes" in the tutorial](https://seaborn.pydata.org/tutorial/function_overview.html#specifying-figure-sizes) – JohanC Dec 23 '21 at 17:42

0 Answers0