Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- dist = np.random.normal(0, 1, 1000)
- FONT_SIZE = "xx-large"
- fig = plt.figure(figsize=(16, 26))
- fig.tight_layout()
- gs = fig.add_gridspec(4, 2)
- fig_ax1 = fig.add_subplot(gs[0, 0])
- # fig_ax1.margins(0, 0)
- fig_ax1.boxplot(
- dist,
- notch=True,
- vert=False)
- fig_ax1.tick_params(
- left=False, labelleft=False)
- fig_ax1.set_xlabel("$dt_{}$ [seconds]", fontsize="x-large")
- fig_ax1.set_ylabel("Something", fontsize=FONT_SIZE)
- # plt.subplots_adjust(left=0.1, right=0.9, top=0.6, bottom=0.4)
- fig_ax2 = fig.add_subplot(gs[0, 1])
- fig_ax2.boxplot(
- dist,
- notch=True,
- vert=False)
- fig_ax2.tick_params(
- left=False, labelleft=False)
- fig_ax2.set_xlabel("$dt_{}$ [seconds]", fontsize="x-large")
- fig_ax2.set_ylabel("Something", fontsize=FONT_SIZE)
- fig_ax3 = fig.add_subplot(gs[1, 0])
- fig_ax3.boxplot(
- dist,
- notch=True,
- vert=False)
- fig_ax3.tick_params(
- left=False, labelleft=False)
- fig_ax3.set_xlabel("$dt_{}$ [seconds]", fontsize="x-large")
- fig_ax3.set_ylabel("Something", fontsize=FONT_SIZE)
- fig_ax4 = fig.add_subplot(gs[1, 1])
- fig_ax4.boxplot(
- dist,
- notch=True,
- vert=False)
- fig_ax4.tick_params(
- left=False, labelleft=False)
- fig_ax4.set_xlabel("$dt_{}$ [seconds]", fontsize="x-large")
- fig_ax4.set_ylabel("Something", fontsize=FONT_SIZE)
- fig_ax5 = fig.add_subplot(gs[2, 0])
- fig_ax5.hist(
- dist,
- bins=60)
- fig_ax5.set_xlabel(" Fee [€]", fontsize="x-large")
- fig_ax5.set_xlim(0, 0.02)
- fig_ax5.set_ylabel("Push", fontsize=FONT_SIZE)
- fig_ax6 = fig.add_subplot(gs[2, 1])
- fig_ax6.hist(
- dist,
- bins=60)
- fig_ax6.set_xlabel("Fee [€]", fontsize="x-large")
- fig_ax6.set_ylabel("Pull", fontsize=FONT_SIZE)
- fig_ax7 = fig.add_subplot(gs[3, :])
- fig_ax7.set_title("Round Trip", fontsize="x-large")
- fig_ax7.boxplot(
- dist,
- notch=True,
- vert=False)
- fig_ax7.tick_params(
- left=False, labelleft=False)
- fig_ax7.set_xlabel("$dt_{Round Trip}$ [seconds]", fontsize="x-large")
- fig_ax7.set_ylabel("Round Trip", fontsize="x-large")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement