Untitled2 In [21]: import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import ( MultipleLocator , AutoMinorLocator ) f = plt . figure ( figsize = ( 4 , 6 )) ax1 = f . add_axes ([ 0.2 , 0.45 , 0.6 , 0.3 ]) ax2 = f . add_axes ([ 0.2 , 0.1 , 0.6 , 0.3 ]) ax1 . plot ( np . arange ( 100 ), np . sin ( np . arange ( 100 ) / 5 )) ax1 . tick_params ( axis = "x" , labelbottom = False ) ax1 . xaxis . set_ticks_position ( 'both' ) ax1 . yaxis . set_ticks_position ( 'both' ) ax1 . yaxis . set_minor_locator ( MultipleLocator ( 0.25 )) ax1 . xaxis . set_minor_locator ( MultipleLocator ( 5 )) ax2 . plot ( np . arange ( 100 ), np . cos ( np . arange ( 100 ) / 5 )) ax2 . xaxis . set_ticks_position ( 'both' ) ax2 . yaxis . set_ticks_position ( 'both' ) ax2 . yaxis . set_minor_locator ( MultipleLocator ( 0.25 )) ax2 . xaxis . set_minor...