This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_df = pd.DataFrame([distance, np.sort(optical_power)]) | |
data_df = data_df.T | |
data_df.rename(columns={0:'distance', 1:'optical_power'}, inplace=True) | |
#data_df['avg_speed'] = data_df['throughput'].divide(data_df['client_qty']) | |
data_df |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def double_hist_and_scatter_plot(df): | |
# Auxilliary parameters for the plot, number of bins | |
w = 2 | |
n = math.ceil((df['optical_power'].max() - df['optical_power'].min()) / w) | |
# definitions for the axes limits and positions | |
left, width = 0.1, 0.65 | |
bottom, height = 0.1, 0.65 | |
spacing = 0.005 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double_hist_and_scatter_plot(data_df) |
OlderNewer