I\'m plotting something with seaborn\'s regplot. As far as I understand, it uses pyplot.scatter behind the scenes. So I assumed that if I specify c
regplot
pyplot.scatter
Another approach would be
import seaborn as sns import matplotlib.pyplot as plt tips = sns.load_dataset("tips") points = plt.scatter(tips["total_bill"], tips["tip"], c=tips["size"], s=75, cmap="BuGn") plt.colorbar(points) sns.regplot("total_bill", "tip", data=tips, scatter=False, color=".1")