plot function
added figure