<jupyter_start><jupyter_text>Basic Scatterplot with Seaborn A [scatterplot](http://python-graph-gallery.com/scatter-plot/) can be made using `regplot()` function of [seaborn](http://python-graph-gallery.com/seaborn/) library. An example dataset from seaborn repository, iris dataset, is used in the example. The plot shows the relationship between sepal lenght and width of plants. In order to show the most basic utilization of this function, the following parameters should be provided:* `x` : positions of points on the X axis* `y` : positions of points on the Y axisBy default, a linear regression fit is plotted. It can be removed from graph by setting `fit_reg=False`.<jupyter_code># library & dataset
import seaborn as sns
import matplotlib.pyplot as plt
df = sns.load_dataset('iris')
 
# use the function regplot to make a scatterplot
sns.regplot(x=df["sepal_length"], y=df["sepal_width"])
 
# make a scatterplot without regression fit
#ax = sns.regplot(x=df["sepal_length"], y=df["sepal_width"], fit_reg=False)

plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0999057492931197, 'fraction_numerical': 0.0, 'mean_word_length': 5.679245283018868, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '172515', 'license': '0BSD', 'n_tokens_mistral': 331, 'n_tokens_neox': 320, 'n_words': 122, 'path': 'src/notebooks/40-basic-scatterplot-seaborn.ipynb', 'repo_name': 's-lasch/The-Python-Graph-Gallery', 'size': '1061'}