```
if legend[_aes_name] is None:
  del legend[_aes_name]
```
?