real-time graphic like cpu load or RAM consumption

hi all,
I intend to create a real-time graphic like cpu load or RAM consumption, constantly shifting from right to left, as new data is received; does matplotlib have appropriate function for it? (Probably I could make it via plot() but I guess redrawing will eat lot of cpu)