new plot function

new plot function