# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3.6.9 64-bit
#     name: python3
# ---

import pandas as pd 
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_theme(style="darkgrid")
dataframe = pd.read_csv('Ping_by_DRC_by_Time.csv',  delimiter=';', header=0, index_col=0)
dataframe=dataframe.astype(float)

# +
ax = plt.gca()
dataframe.plot(kind='line', y='5', label='NG-RAN 2 units', ax=ax, color='tab:blue')
#plt.axhline(y=dataframe['5'].mean(),linestyle='dotted',color='tab:blue', label='DRC 5 Average Latency=' + str(dataframe['5'].mean()))
plt.axhline(y=dataframe['5'].mean(),linestyle='dotted',color='tab:blue', label='NG-RAN 2 units avg.')


dataframe.plot(kind='line', y='8', label='D-RAN', ax=ax, color='tab:orange')
#plt.axhline(y=dataframe['8'].mean(),linestyle='dashed',color='tab:orange', label='DRC 8 Average Latency =' + str(dataframe['8'].mean()))
plt.axhline(y=dataframe['8'].mean(),linestyle='dashed',color='tab:orange', label='D-RAN avg.')


dataframe.plot(kind='line', y='10', label='C-RAN', ax=ax, color='tab:green')
#plt.axhline(y=dataframe['10'].mean(),linestyle='dashed',color='tab:green', label='DRC 10 Average Latency =' + str(dataframe['10'].mean()))
plt.axhline(y=dataframe['10'].mean(),linestyle='dashed',color='tab:green', label='C-RAN avg.')

plt.xlabel("Time (s)")
plt.ylabel("Latency (ms)")
plt.legend()
plt.savefig('out/Ping_by_DRC_by_Time.pdf', bbox_inches='tight')
plt.savefig('out/Ping_by_DRC_by_Time.png', dpi=300, bbox_inches='tight')
# -



StarcoderdataJupyterScriptsDedupFiltered