resistance-modelling / slim

SLIM is the Sea Lice Model associated with a funded BBSRC project on the evolution to resistance to treatment in sea lice (BBR009309). We aim to integrate an epidemiological and genetic model of sea lice with a model of treatment decision-making by different salmon farms.
MIT License
1 stars 0 forks source link

Legend is rendered twice when first loading #185

Closed erolm-a closed 2 years ago

erolm-a commented 2 years ago

This is due to a recursive call in _updatePlot in plot.py which plots twice when the number of farms has changed. Indeed, when cold-starting the number of farms changes from 0 to 2 thus causing the glitch.