add example for with syntax in plots