altering the size to fill the screen visualization is much more effective at communicating patterns in data if it fits nicely on the screen to make the plotting window better fit your screenadjust the size of matplotlib' outputlike thisrw_visual py --snip-while truemake random walkand plot the points rw randomwalk(rw fill_walk(set the size of the plotting window plt figure(figsize=( )--snip-the figure(function controls the widthheightresolutionand background color of the plot the figsize parameter takes tuplewhich tells matplotlib the dimensions of the plotting window in inches python assumes that your screen resolution is pixels per inchif this code doesn' give you an accurate plot sizeadjust the numbers as necessary orif you know your system' resolutionpass figure(the resolution using the dpi parameter to set plot size that makes effective use of the space available on your screenas shown hereplt figure(dpi= figsize=( )