A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.python-graph-gallery.com/44-control-axis-limits-of-plot-seaborn/ below:

Website Navigation


Control Axis Limits of Plot

# library & dataset
import seaborn as sns
import matplotlib.pyplot as plt
df = sns.load_dataset('iris')
 
# basic scatterplot
sns.scatterplot(
   x="sepal_length",
   y="sepal_width",
   data=df
)
 
# control x and y limits
plt.ylim(0, 20)
plt.xlim(0, None)
 
plt.show()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4