Difference in the Plots using seaborn

Sir in his plots achieves a different plotting plane as compared to mine.
For the below snippet:

plt.plot(X_test.T, '*')
plt.xticks(rotation='vertical')
plt.show()

Here is Sir’s:

Sir's plot

Here is my:

My plot

NOTE:

i) The difference in the grid types.

ii) The plot size

Please Help

Thanks

–Bilal

Hi,

Initialy also had same output, so i work to improve it and i am sharing steps here :

First you need to import seaborn.

import seaborn as sns

Second you need to enlarge canvas (img) size.

sns.set(rc={'figure.figsize':(11.7,8.27)}) # size of A4 sheet

complete code

import seaborn as sns
sns.set(rc={'figure.figsize':(11.7,8.27)})

now start ploting with instructor code :slight_smile:

Thanks shalom,
Was really helpful
:slightly_smiling_face:

1 Like