You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Superfluous legend entries when plotting with seaplot #405
Not sure how the internals of seaborn are, but we are getting the labels from the objects themselves. It seems like seaborn is adding them in their lineplot. I would suggest setting them manually
From their source I can see that they iterate over it internally -- our internal mechanism will pick up it is a dataframe and then infer the labels from the (sub/grouped) dataframe. Not sure at this time how we could circumvent this other than the suggestion above. The tricky part is that when plot is called our internal plotting will take over and see it is a DataFrame and then act accordingly.
EDIT: not sure on the extra ys tho, it implies that seaborn is called too often to get those extra entries. The shaded area is added automatically through a similar mechanism as above. The DataFrame part of UltraPlot I still need to study as I don't use this often / at all.
There is a fix on #406. The issue is that seaborn internally tags the plots which we tend (erroneously) pick up. We provide a context manager to turn this feature off for external toolboxes.
Activity
cvanelteren commentedon Nov 10, 2025
Not sure how the internals of seaborn are, but we are getting the labels from the objects themselves.
It seems like seaborn is adding them in their. I would suggest setting them manuallylineplotcvanelteren commentedon Nov 10, 2025
From their source I can see that they iterate over it internally -- our internal mechanism will pick up it is a dataframe and then infer the labels from the (sub/grouped) dataframe. Not sure at this time how we could circumvent this other than the suggestion above. The tricky part is that when plot is called our internal plotting will take over and see it is a DataFrame and then act accordingly.
EDIT: not sure on the extra ys tho, it implies that seaborn is called too often to get those extra entries. The shaded area is added automatically through a similar mechanism as above. The
DataFramepart of UltraPlot I still need to study as I don't use this often / at all.cvanelteren commentedon Nov 15, 2025
There is a fix on #406. The issue is that seaborn internally tags the plots which we tend (erroneously) pick up. We provide a context manager to turn this feature off for external toolboxes.
lschr commentedon Nov 17, 2025
Great, thanks a lot!