Skip to content
Advertisement

How to *Rotate* labels in a Seaborn PairGrid?

The columns in my dataframe has long names, so when I make a pairplot, the labels overlaps one another. I would like to rotate my labels 90 degrees, so they don’t collide. I tried looking up online and documentation, but could not find a solution. Here is something I wrote & the error message:

JavaScript
JavaScript

How can I rotate labels (both x and y) in a Seaborn PairGrid?

Note: Sorry, my wifi can’t upload the image for reference.

Advertisement

Answer

Thanks to William’s answer, I now know what to look for to solve my problem!

Below is how I did it.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement