我有以下情节:
import matplotlib.pyplot as plt
fig2 = plt.figure()
ax3 = fig2.add_subplot(2,1,1)
ax4 = fig2.add_subplot(2,1,2)
ax4.loglog(x1, y1)
ax3.loglog(x2, y2)
ax3.set_ylabel('hello')
Run Code Online (Sandbox Code Playgroud)
我希望能够创建轴标签和标题,不仅适用于两个子图中的每一个,还包括跨越两个子图的常用标签.例如,由于两个图都有相同的轴,我只需要一组x和y轴标签.我确实希望每个子图有不同的标题.
我尝试了一些东西,但没有一个能正常工作