Remove background shading from Seaborn lineplot

Question:

This is my code

fig, ax = plt.subplots(figsize=(50, 30))
sns.lineplot(data=dataframe, x='A', y='B', hue='C', ax=ax)

This was the result:
what I don't want
There is a blue line and it is painted in light blue as if it spreads around it.

I only want to see the color of the straight line.

Like this, for example:

What I want

What should I do?

Asked By: ddjfjfj djfiejdn

||

Answers:

That’s the confidence interval that you see. You can supress it by passing ci=None:

fig, ax = plt.subplots(figsize=(50, 30))
sns.lineplot(data=dataframe, x='A', y='B', hue='C', ax=ax, ci=None)
Answered By: pigrammer
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.