Add macro for ploting