formatted plot code style