Multiple graphs are now properly displayed

patch provided by Max