BlockchainEngineering icon indicating copy to clipboard operation
BlockchainEngineering copied to clipboard

Typo in master

Open JMGaljaard opened this issue 4 years ago • 0 comments

In the Jupyter notebook 02_Gossip_Services, the cell Average time contains the following piece of code.

def show_avg_time(df):
    plt.figu

re(figsize=(10, 5))
ax = sns.boxplot(data=df, )
ax.set_title('Average time to arrival', fontsize= 20 )
ax.set_ylabel('Time (ms)', fontsize=12)
ax.set_xlabel('Peer id', fontsize=12)
plt.show()
show_avg_time(df)

This should be changed to the following:

def show_avg_time(df):
    plt.figure(figsize=(10, 5))
    ax = sns.boxplot(data=df, )
    ax.set_title('Average time to arrival', fontsize= 20 )
    ax.set_ylabel('Time (ms)', fontsize=12)
    ax.set_xlabel('Peer id', fontsize=12)
    plt.show()

show_avg_time(df)

It seems to be already updated (or not broken) in changes-to-text. However, that branch seems to be stale. The typo was introduced in e4301b6d33f119e3e1ff56ac67c7e659fcd62e92.

JMGaljaard avatar Feb 24 '21 08:02 JMGaljaard