行对于这样一个情节:添加字幕的情节
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 2 * np.pi, 400)
y = np.sin(x ** 2)
f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharey=True)
ax1.plot(x, y)
ax2.scatter(x, y)
ax3.scatter(x, 2 * y ** 2 - 1, color='r')
ax4.plot(x, 2 * y ** 2 - 1, color='r')
如何添加字幕行?它应该是这样的:
我做“标题1”和“标题2”用Photoshop,我怎能把它们添加到python中的情节?
你可以用'ax3.set_title(“插入标题下面”)'给一个标题到每个插曲,但是这并没有出现在该行的中间.... – DavidG