quick fix: close figure before plotting next bin