Skip to content Skip to sidebar Skip to footer

Extra Plot When Drawing Catplot

Using the following code: import pandas as pd import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline df1 = pd.DataFrame( {'category': {0: 'Cat', 1: 'Cat', 2: 'Cat

Solution 1:

You can use the following trick : Close the extra figure before plt.show()

plt.close(2)
plt.show()

Post a Comment for "Extra Plot When Drawing Catplot"