I am trying to change a specific part of the legend in my plot in seaborn.
I wrote the following code to display a plot in seaborn. The plot can be seen below.
ax = sns.lineplot(data = weekly_port_ret,
x='week',y='R',hue='high_leverage',style='gsector')
ax.set(title='Weekly Portfolio Returns - Daily Rebalancing',
xlabel='Week in 2020',
ylabel='Weekly Return'
)
plt.show()
I am just trying to change where it says "20.0" in the legend to "Industrial", and where it says "45.0" to "IT". Does anyone know how to do this?