物理学会2025@広島大学
物理学会に参加してきました。サッカーもできて、いろいろな人と打ち合わせもでき、やはり良い会合だなと思いました。 オンサイトは年一回なので、記憶に残りやすいです。
import numpy as np
import matplotlib.pyplot as plt
config = {
'lines.linewidth':1.5,
'xtick.direction': 'in',
'ytick.direction': 'in',
'font.sans-serif': ['Helvetica', 'Arial'],
'font.family': ['sans-serif'],
'font.size': 14,
'figure.dpi': 200,
'legend.fontsize': 'small', # 'medium',
'figure.figsize': [8, 5],
'lines.markersize': 5.0,
'legend.frameon': True,
'savefig.transparent': True,
'lines.markeredgewidth': 0.7,
'lines.markerfacecolor': 'w',
'legend.edgecolor': '0',
'legend.facecolor': [1, 1, 1],
'legend.framealpha': 1
# plt.rcParams.keys()
}
plt.rcParams.update(config)
x = np.arange(50)
y = np.sin(x / 5)
f = plt.figure(figsize = (6, 4))
ax = f.add_axes([0.2, 0.2, 0.6, 0.6])
ax.plot(x, y, color = [1, 0, 0], label = 'dat1')
ax.plot(x, -y, marker = 'o', lw = 0, color = [0, 0, 1], label = 'dat2')
ax.set_xlabel('$θ$ (radians)')
ax.set_ylabel('Amplitude (V)')
ax.set_xlim(-5, 55)
ax.set_ylim(-1.5, 2)
ax.legend()
plt.savefig('text.pdf')
コメント
コメントを投稿