by defaultmatplotlib identifies the range of values being plotted and adjusts the ticks and the range of both xand -axes it also provides capability to manually set these through the axis(function through this functionwe can set the axis range using predefined keywords like tightscaledand equalalong with passing list such that it marks the values as [xminxmaxyminymaxthe following snippet shows how to adjust axis range manually manual np log(xz np log (xw np log (xplt plot( , ,' ', , ,' ', , ,' 'plt axis([ , ,- , ]plt title('manual axis range'the output in figure - showcases the plot generated without any axis adjustments on the leftwhile the right one shows the axis adjustment as done in the previous snippet figure - plots showcasing default axis and manually adjusted axis now that we have seen how to set the axis rangewe will quickly touch on setting the ticks or axis markers manually as well for axis tickswe have two separate functions availableone for setting the range of ticks while the second sets the tick labels the functions are intuitively named as set_ticks(and set_ticklabels()respectively in the following examplewe set the ticks to be marked for the -axis while for -axis we set both the tick range and the labels using the appropriate functions manual ticks plt plot(xyax plt gca(ax xaxis set_ticks(np arange(- )ax yaxis set_ticks(np arange( )ax yaxis set_ticklabels(["min" "max"]plt grid(trueplt title("manual ticks on the -axis"