在 Python 中写一个更大的抑扬音
Write a Circumflex Larger in Python
我可以在 Python 的图表上写 'A circumflex' 作为标签:
df = pd.DataFrame({'x':(0,3,4,0),'y':(3,0,4,3)})
fig, ax = plt.subplots(1,1)
df.plot(x='x', y='y', ax=ax, label='A\u0302', linewidth=5, color='k', linestyle='-')
for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
ax.get_xticklabels() + ax.get_yticklabels()):
item.set_fontsize(22)
legend = ax.legend(loc=0, ncol=1, bbox_to_anchor=(0.9, -.3, .6, 1),
fancybox=True, shadow=False,
framealpha=1, fontsize=22)
plt.setp(legend.get_title(),fontsize=22)
这给出:
请问怎样才能让抑扬音变大?
感谢 T & tmdavison 先生,$^{A}$ 或 $\hat{A}$ 出于某种原因工作:
df = pd.DataFrame({'x':(0,3,4,0),'y':(3,0,4,3)})
fig, ax = plt.subplots(1,1)
df.plot(x='x', y='y', ax=ax, label='$A\u0302$', linewidth=5, color='k', linestyle='-')
df.plot(x='x', y='y', ax=ax, label='$\^{A}$', linewidth=5, color='k', linestyle='-')
df.plot(x='x', y='y', ax=ax, label='$\hat{A}$', linewidth=5, color='k', linestyle='-')
for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
ax.get_xticklabels() + ax.get_yticklabels()):
item.set_fontsize(22)
legend = ax.legend(loc=0, ncol=1, bbox_to_anchor=(0.9, -.3, .6, 1),
fancybox=True, shadow=False,
framealpha=1, fontsize=22)
plt.setp(legend.get_title(),fontsize=22)
我可以在 Python 的图表上写 'A circumflex' 作为标签:
df = pd.DataFrame({'x':(0,3,4,0),'y':(3,0,4,3)})
fig, ax = plt.subplots(1,1)
df.plot(x='x', y='y', ax=ax, label='A\u0302', linewidth=5, color='k', linestyle='-')
for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
ax.get_xticklabels() + ax.get_yticklabels()):
item.set_fontsize(22)
legend = ax.legend(loc=0, ncol=1, bbox_to_anchor=(0.9, -.3, .6, 1),
fancybox=True, shadow=False,
framealpha=1, fontsize=22)
plt.setp(legend.get_title(),fontsize=22)
这给出:
请问怎样才能让抑扬音变大?
感谢 T & tmdavison 先生,$^{A}$ 或 $\hat{A}$ 出于某种原因工作:
df = pd.DataFrame({'x':(0,3,4,0),'y':(3,0,4,3)})
fig, ax = plt.subplots(1,1)
df.plot(x='x', y='y', ax=ax, label='$A\u0302$', linewidth=5, color='k', linestyle='-')
df.plot(x='x', y='y', ax=ax, label='$\^{A}$', linewidth=5, color='k', linestyle='-')
df.plot(x='x', y='y', ax=ax, label='$\hat{A}$', linewidth=5, color='k', linestyle='-')
for item in ([ax.title, ax.xaxis.label, ax.yaxis.label] +
ax.get_xticklabels() + ax.get_yticklabels()):
item.set_fontsize(22)
legend = ax.legend(loc=0, ncol=1, bbox_to_anchor=(0.9, -.3, .6, 1),
fancybox=True, shadow=False,
framealpha=1, fontsize=22)
plt.setp(legend.get_title(),fontsize=22)