BUG: legend behaves inconsistently when plotting to the same axes repeatedly