✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Do not show all permutations of symbols and colors as legend

I’d like to reduce the following legend:
Screenshot from 2020-11-17 13-31-09
to one, that would show colors
{YF: blue, PF: red}
and symbols

{cirlce: GUT, 
diamond: LIPOPROTEIN, 
square: FAT BODY, 
cross: WING DISC}

Sorry, already answered here: Plotly express how to separate symbol and color in legend