I am also using data directly from seaborn itself. You can then simply call fig.tight_layout() to get the plot fitted nicely.Īlso, there is a much easier way to iterate through axes by using flatten on your array of axes objects. If you wanted to act on that figure you should have done fig.set_size_inches(12, 5) instead to change the size. You already created your figure and assigned to variable fig. It defaults to (6,4) in your plot since you did not set it. Set the figsize in your call to plt.subplots. Your call to plt.figure(figsize=(12,5)) is creating a new empty figure different from your already declared fig from the first step.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |