2. Which function is used to set the x-axis limits in Matplotlib? A. set_xlim() B. set_ylim() C. axis() D. xlim() Show Answer Advertisement - This is a modal window. No compatible source was found for this
例子 frommatplotlibimportpyplotasplt plt.rcParams["figure.figsize"]=[7.50,3.50]plt.rcParams["figure.autolayout"]=Trueax1=plt.subplot(2,2,1)ax1.set_xlim(left=0,right=5)ax1.set_ylim(bottom=0,top=5)ax1.plot([1,4,3])ax2=plt.subplot(2,2,2,sharey=ax1,sharex=ax1)ax2.plot([3,4,...
Browse Library Advanced SearchSign InStart Free Trial