Loading plot_broken_edges.py +10 −8 Original line number Diff line number Diff line Loading @@ -120,8 +120,11 @@ def plot_average_per_height(average_heights_dict): for i, offset in enumerate(average_heights_dict.keys()): index = get_index(i, graph_num, width) for height, subdict in average_heights_dict[offset].items(): axs[index].plot(int(height), subdict['avg'], "x") axs[index].errorbar(int(height), subdict['avg'], yerr = subdict['yerror']) #axs[index].plot(int(height), subdict['avg'], "_") axs[index].errorbar(int(height), subdict['avg'], yerr = subdict['yerror'], fmt='o' ,color = 'black') axs[index].set_xlabel("Height") axs[index].set_ylabel("Average number of broken edges") axs[index].set_title(f"Offset {offset}") plt.show() Loading @@ -143,11 +146,11 @@ if __name__ == "__main__": filepath_2 = "/offset_5/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5" filepaths_dict = { 0 : [ "/offset_0/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC_-_{}.h5".format(number) for number in range(1000,1010)], # 1 : [ "/offset_1/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC_-_{}.h5".format(number) for number in range(1000,1010)], # 2 : "/offset_2/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", # 3 : "/offset_3/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", # 5 : "/offset_5/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", # 10 : "/offset_10/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 1 : [ "/offset_1/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC_-_{}.h5".format(number) for number in range(1000,1010)], 2 : "/offset_2/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 3 : "/offset_3/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 5 : "/offset_5/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 10 : "/offset_10/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", } data_dict = get_data_dict(filepaths_dict) Loading @@ -167,7 +170,6 @@ if __name__ == "__main__": average_heights_dict[offset] = get_average_heights_dict(broken_edges_coordinates_dict[offset]) plot_average_per_height(average_heights_dict) #plot_distribution_of_height(broken_edges_coordinates_dict) Loading Loading
plot_broken_edges.py +10 −8 Original line number Diff line number Diff line Loading @@ -120,8 +120,11 @@ def plot_average_per_height(average_heights_dict): for i, offset in enumerate(average_heights_dict.keys()): index = get_index(i, graph_num, width) for height, subdict in average_heights_dict[offset].items(): axs[index].plot(int(height), subdict['avg'], "x") axs[index].errorbar(int(height), subdict['avg'], yerr = subdict['yerror']) #axs[index].plot(int(height), subdict['avg'], "_") axs[index].errorbar(int(height), subdict['avg'], yerr = subdict['yerror'], fmt='o' ,color = 'black') axs[index].set_xlabel("Height") axs[index].set_ylabel("Average number of broken edges") axs[index].set_title(f"Offset {offset}") plt.show() Loading @@ -143,11 +146,11 @@ if __name__ == "__main__": filepath_2 = "/offset_5/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5" filepaths_dict = { 0 : [ "/offset_0/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC_-_{}.h5".format(number) for number in range(1000,1010)], # 1 : [ "/offset_1/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC_-_{}.h5".format(number) for number in range(1000,1010)], # 2 : "/offset_2/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", # 3 : "/offset_3/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", # 5 : "/offset_5/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", # 10 : "/offset_10/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 1 : [ "/offset_1/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC_-_{}.h5".format(number) for number in range(1000,1010)], 2 : "/offset_2/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 3 : "/offset_3/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 5 : "/offset_5/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", 10 : "/offset_10/FDB_PARSOL_SIRC-FCVC_SOG_HFBA_CPC-NIC.h5", } data_dict = get_data_dict(filepaths_dict) Loading @@ -167,7 +170,6 @@ if __name__ == "__main__": average_heights_dict[offset] = get_average_heights_dict(broken_edges_coordinates_dict[offset]) plot_average_per_height(average_heights_dict) #plot_distribution_of_height(broken_edges_coordinates_dict) Loading