It happens if the parent variable name is Emi (w/bunkers) and the child is Emi. Then, the fact that shorten_legend removes what it thinks is a unit (but isn't) and strips away all the variable name, leaving an empty string.
If shortening leads to "", better take the full name.
Emi (w/bunkers)
and the child isEmi
. Then, the fact thatshorten_legend
removes what it thinks is a unit (but isn't) and strips away all the variable name, leaving an empty string.""
, better take the full name.old: new (no idea why it changed the color):