How to set axis limits in a seaborn lmplot FacetGrid in Python

Using seaborn.lmplot() to plot data returns a seaborn.axisgrid.FacetGrid object. Setting axis limits for a FacetGrid limits the range of values displayed on the plot’s axes.

Solution for How to set axis limits in a seaborn lmplot FacetGrid in Python : You can use seaborn.axisgrid.FaceGrid.set() to set axis limits for a FacetGrid Call seaborn.lmplot(“X”, “Y”, data) with the desired axis labels as X and Y to plot the contents of data as a seaborn.axisgrid.FacetGrid. Then, call FacetGrid.set(xlim=(lower, upper)) or FacetGrid.set(ylim=(lower, upper)) to set the x and y axis limits, respectively, to the passed lower and upper values.


how-to-set-axis-limits-in-a-seaborn-lmplot-facetgrid-in-python