<commit_before>import numpy as np
import matplotlib.pyplot as plt
fGHz=np.arange(2,11,0.1)
fcenter = fGHz[len(fGHz)/2]
dist = np.arange(1,9,0.4)
tEtt = np.load('tEtt.npy')
tEtp = np.load('tEtp.npy')
tEpt = np.load('tEpt.npy')
tEpp = np.load('tEpp.npy')
plt.plot(dist,10*np.log10(tEtt))
plt.plot(dist,10*np.log10(tEtp))
plt.plot(dist,10*np.log10(tEpt))
plt.plot(dist,10*np.log10(tEpp))
plt.xlabel('Tx Rx distance (meters)')
plt.ylabel('Attenuation (dB)')
plt.legend((u'$\\theta\\theta$',u'$\\theta\phi$',u'$\phi\\theta$',u'$\phi\phi$'))
plt.show()<commit_msg>modif in post-Friis<commit_after>import numpy as np
import matplotlib.pyplot as plt
fGHz=np.arange(2,11,0.1)
fcenter = fGHz[len(fGHz)/2]
dist = np.arange(1,9,0.2)
LFS = -32.44 -20*np.log10(fcenter)-20*np.log10(dist)
tEtt = np.load('tEtt.npy')
tEtp = np.load('tEtp.npy')
tEpt = np.load('tEpt.npy')
tEpp = np.load('tEpp.npy')
fig = plt.figure(figsize=(15,10))
ax = fig.add_subplot(111)
ax.plot(dist,10*np.log10(tEtt))
ax.plot(dist,10*np.log10(tEtp))
ax.plot(dist,10*np.log10(tEpt))
ax.plot(dist,10*np.log10(tEpp))
ax.plot(dist,LFS,'k--')
plt.xlabel('Tx Rx distance (meters)')
plt.ylabel('Attenuation (dB)')
plt.title('Attenuation w.r.t distance - $\\tilde{C}$ level no antenna')
plt.legend((u'$\\theta\\theta$',u'$\\theta\phi$',u'$\phi\\theta$',u'$\phi\phi$','Free Space'))
plt.tight_layout()
fig.savefig('FriisCtilde.png')
{'fraction_non_alphanumeric': 0.24075416968817984, 'fraction_numerical': 0.05148658448150834, 'mean_word_length': 6.040816326530612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7374312', 'n_tokens_mistral': 722, 'n_tokens_neox': 671, 'n_words': 84}