To set the figure size of a pairplot in Python using seaborn, you can use the plt.figure
function from matplotlib library.
Here is an example code snippet that demonstrates how to set the figure size:
main.py222 chars15 lines
In the code above, the plt.figure(figsize=(8, 8))
line sets the figure size to 8x8 inches. You can adjust the width and height values according to your preference.
Make sure to import the necessary libraries, seaborn and matplotlib, and replace iris
with your own dataset if needed.
Hope this helps!
gistlibby LogSnag