[plotstyle] overwrite Axes constructer for show_spines
This commit is contained in:
@@ -19,7 +19,6 @@ if __name__ == "__main__":
|
||||
spec = gridspec.GridSpec(nrows=1, ncols=2, width_ratios=[3, 1], wspace=0.08,
|
||||
**adjust_fs(fig, left=6.0))
|
||||
ax1 = fig.add_subplot(spec[0, 0])
|
||||
show_spines(ax1, 'lb')
|
||||
ax1.scatter(indices, data, c=colors['blue'], edgecolor='white', s=50)
|
||||
ax1.set_xlabel('Index')
|
||||
ax1.set_ylabel('Weight', 'kg')
|
||||
@@ -28,7 +27,6 @@ if __name__ == "__main__":
|
||||
ax1.set_yticks(np.arange(0, 351, 100))
|
||||
|
||||
ax2 = fig.add_subplot(spec[0, 1])
|
||||
show_spines(ax2, 'lb')
|
||||
xx = np.arange(0.0, 350.0, 0.5)
|
||||
yy = st.norm.pdf(xx, mu, sigma)
|
||||
ax2.plot(yy, xx, color=colors['red'], lw=2)
|
||||
|
||||
@@ -24,7 +24,6 @@ if __name__ == "__main__":
|
||||
spec = gridspec.GridSpec(nrows=2, ncols=2, **adjust_fs(fig))
|
||||
|
||||
ax = fig.add_subplot(spec[0, 0])
|
||||
show_spines(ax, 'lb')
|
||||
ax.plot(indices, x1, c=colors['blue'], lw=1, zorder=10)
|
||||
ax.scatter(indices, x1, c=colors['blue'], edgecolor='white', s=50, zorder=20)
|
||||
ax.set_xlabel('Index')
|
||||
@@ -33,7 +32,6 @@ if __name__ == "__main__":
|
||||
ax.set_ylim(-0.05, 1.05)
|
||||
|
||||
ax = fig.add_subplot(spec[0, 1])
|
||||
show_spines(ax, 'lb')
|
||||
ax.plot(indices, x2, c=colors['blue'], lw=1, zorder=10)
|
||||
ax.scatter(indices, x2, c=colors['blue'], edgecolor='white', s=50, zorder=20)
|
||||
ax.set_xlabel('Index')
|
||||
@@ -42,7 +40,6 @@ if __name__ == "__main__":
|
||||
ax.set_ylim(-0.05, 1.05)
|
||||
|
||||
ax = fig.add_subplot(spec[1, 1])
|
||||
show_spines(ax, 'lb')
|
||||
ax.plot(indices, x3, c=colors['blue'], lw=1, zorder=10)
|
||||
ax.scatter(indices, x3, c=colors['blue'], edgecolor='white', s=50, zorder=20)
|
||||
ax.set_xlabel('Index')
|
||||
@@ -51,7 +48,6 @@ if __name__ == "__main__":
|
||||
ax.set_ylim(-0.05, 1.05)
|
||||
|
||||
ax = fig.add_subplot(spec[1, 0])
|
||||
show_spines(ax, 'lb')
|
||||
ax.plot(lags, corrs, c=colors['red'], lw=1, zorder=10)
|
||||
ax.scatter(lags, corrs, c=colors['red'], edgecolor='white', s=50, zorder=20)
|
||||
ax.set_xlabel('Lag')
|
||||
|
||||
@@ -23,7 +23,6 @@ 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])
|
||||
show_spines(ax1, 'lb')
|
||||
ax1.plot(xx, yy, colors['red'], lw=2)
|
||||
ax1.scatter(x, y, c=colors['blue'], edgecolor='white', s=50)
|
||||
ax1.set_xlabel('Hair deflection', 'nm')
|
||||
@@ -34,7 +33,6 @@ if __name__ == "__main__":
|
||||
ax1.set_yticks(np.arange(0, 9, 2))
|
||||
|
||||
ax2 = fig.add_subplot(spec[0, 1])
|
||||
show_spines(ax2, 'lb')
|
||||
xg = np.linspace(-3.0, 3.01, 200)
|
||||
yg = st.norm.pdf(xg, 0.0, sigma)
|
||||
ax2.plot(xg, yg, colors['red'], lw=2)
|
||||
|
||||
Reference in New Issue
Block a user