How to accommodate all labels on Y axis in python

13 Views Asked by At

enter image description hereThis is my code:

     import matplotlib.pyplot as plt
     %matplotlib inline
     sns.scatterplot(x=df['Amount'], y=df['ship-state'],hue=df['Category'],palette='Set1')
     plt.figure(figsize=(10,6))
     plt.tight_layout(pad=3.0)
     plt.show()

the image I have attached is of the plot resultant of above code, can you please tell me how can I accommodate all states on Y axis!

I tried changing size and layouts:

    plt.figure(figsize=(10,6))
    plt.tight_layout(pad=3.0)

but didn't work

0

There are 0 best solutions below