Skip to content
Advertisement

How to set axis label format to scientific format in seaborn relplot with facets when axes are not shared

I am creating a facet plot with the seaborn library with:

JavaScript

enter image description here

I would like ALL subplots to have scientific notation.

Using Seaborn version 0.11.2

Advertisement

Answer

  • Since the axes are not shared, the format can be set by iterating through each axes.
  • This answer shows how to set the tick label format when x and y are shared.
  • Tested in python 3.10, matplotlib 3.5.1, seaborn 0.11.2
JavaScript

enter image description here

Advertisement