Skip to content
Advertisement

How to format the y- or x-axis labels in a seaborn FacetGrid

I want to format y-axis labels in a seaborn FacetGrid plot, with a number of decimals, and/or with some text added.

JavaScript

Inspired from How to format seaborn/matplotlib axis tick labels from number to thousands or Millions? (125,436 to 125.4K)

JavaScript

It results in the following error.

AttributeError: 'FacetGrid' object has no attribute 'xaxis'

Advertisement

Answer

JavaScript

enter image description here

JavaScript
Advertisement