Easy plot function made