I'm seeing '1 and 2' as additional labels in my legend for a seaborn scatterplot. They'll disappear when I set the legend to False, but so does the legend I do want in there. Any idea where this comes from and how to prevent it from appearing?
This sample code generates the image with the issue;
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
df = pd.DataFrame({'restHR': np.random.randint(40,65, size=(100,)),
'Time': np.random.randint(0,10, size=(100,))})
sns.set()
fig, ax = plt.subplots()
ax = sns.scatterplot(df['Time'], df['restHR'], size=2, alpha=0.3, label="Race",linewidths=0)
plt.legend(frameon=False, bbox_to_anchor=(1,0.5), loc="center left",prop={'size': 8})
plt.subplots_adjust(right=0.75)
plt.show()
