When I create a graph with Width=4in at 100 dpi and view the png image in an image viewer, it…