update with matplotlib and r