the flow diagram for ploting made simple