[plotstyle] bendalab colors

This commit is contained in:
2020-01-06 19:39:19 +01:00
parent c029c56325
commit 680e2699bd
2 changed files with 110 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ if __name__ == "__main__":
fig = plt.figure()
spec = gridspec.GridSpec(nrows=1, ncols=2, **adjust_fs(fig, left=4.5))
ax1 = fig.add_subplot(spec[0, 0])
ax1.plot(xx, yy, colors['red'], lw=2)
ax1.plot(xx, yy, **ls['A1'])
ax1.scatter(x, y, c=colors['blue'], edgecolor='white', s=50)
ax1.set_xlabel('Hair deflection', 'nm')
ax1.set_ylabel('Conductance', 'nS')
@@ -35,7 +35,7 @@ if __name__ == "__main__":
ax2 = fig.add_subplot(spec[0, 1])
xg = np.linspace(-3.0, 3.01, 200)
yg = st.norm.pdf(xg, 0.0, sigma)
ax2.plot(xg, yg, colors['red'], lw=2)
ax2.plot(xg, yg, **ls['A1'])
bw = 0.25
h, b = np.histogram(y-boltzmann(x, x0, k), np.arange(-3.0, 3.01, bw))
ax2.bar(b[:-1], h/np.sum(h)/(b[1]-b[0]), fc=colors['yellow'], width=bar_fac*bw, align='edge')