to have the same -axis this allows us to view data on the same scale along with aesthetic improvements the output is depicted in figure - showcasing sine and cosine curves on the same -axis figure - subplots using subplots(method another variant is the subplot(functionwhich is also exposed through the pyplot module directly this closely emulates the add_subplot(method of the figure object you can find examples listed in the code for this before moving onto other conceptswe quickly touch on the subplot grid(functionalso exposed through the pyplot module this function provides capabilities similar to the ones already discussed along with finer control to define grid layout where subplots can span an arbitrary number of columns and rows the following snippet showcases grid with subplots of different sizes np abs(xz ** plt subplot grid(( , )( )rowspan= colspan= plt plot(xy,' ', , ,' 'ax plt subplot grid(( , )( ),rowspan= plt plot(xy,' 'plt setp(ax get_xticklabels()visible=falseplt subplot grid(( , )( )rowspan= plt plot(xz,' '