def plot_boxes(): plots = Plots() dots = 5 for size in range(2, 11, 2): x = np.linspace(0, 1, dots + 1) y = all_boxes(size, dots) plots.add_plot(x, y, str(size)) plt.legend() plots.show() exit(0)
def plot_boxes2(): plots = Plots() dots = 5 res = None for size in range(2, 11, 1): dummy, r = all_boxes(size, dots) if res is None: res = r else: res = np.vstack((res, r)) res = res.transpose() print(res) x = np.arange(2, 11, 1) for i in range(dots + 1): plots.add_plot(x, res[i], str(round(i * 0.2, 1))) plots.show() exit(0)