Fixed plot function parameters.