How to change the color of a scatter without a third variable in Python with Seaborn?
      in
      
        The Complete Data Visualization Course with Python, R, Tableau, and Excel
       / 
        Scatter Plot - Python - How to Create a Scatter Plot
      
 Doing the homework and just wondering if you can/how to change the default color of the scatter plot in Python using the "sns.scatterplot()" way. 
        1 answers ( 0 marked as helpful)
      
 Hi!
To change the default color of a scatter plot in Seaborn (sns.scatterplot), you can specify the color parameter. Here's an example. Hope this helps!
To change the default color of a scatter plot in Seaborn (sns.scatterplot), you can specify the color parameter. Here's an example. Hope this helps!
import seaborn as sns
import matplotlib.pyplot as plt
# Sample data
data = sns.load_dataset("iris")
# Scatter plot with custom color
sns.scatterplot(data=data, x="sepal_length", y="sepal_width", color="purple")
plt.show()