Commit daf28120 authored by JRock007's avatar JRock007
Browse files

Add legend for theory/experiment comparison

parent 6c202249
......@@ -73,9 +73,10 @@ def main():
ax.set_ylabel("P2")
ax.set_zlabel("Sum of BER")
ax.set_title("Evolution of the total BER for N={} users, depending on the power, with Pmax = {}, g = {} and σ = {}".format(N, Pmax, g, sigma))
ax.plot(P1, P2, BERTotalThList, markerfacecolor="r", marker="o", markersize=5, linestyle="None")
ax.plot(P1, P2, BERTotalList, markerfacecolor="b", marker="x", markersize=5, linestyle="None")
plt.show(True)
ax.plot(P1, P2, BERTotalThList, markerfacecolor="r", marker="o", markersize=5, linestyle="None", label="Theoritical")
ax.plot(P1, P2, BERTotalList, markerfacecolor="b", marker="x", markersize=5, linestyle="None", label="Measured")
ax.legend(loc="lower right")
plt.show(False)
plt.figure()
ax = plt.axes(projection="3d")
......@@ -83,9 +84,10 @@ def main():
ax.set_ylabel("P2")
ax.set_zlabel("BER3")
ax.set_title("Evolution of the 3rd user's BER for N={} users, depending on the power, with Pmax = {}, g = {} and σ = {}".format(N, Pmax, g, sigma))
ax.plot(P1, P2, BER3List, markerfacecolor="r", marker="o", markersize=5, linestyle="None")
ax.plot(P1, P2, BER3ThList, markerfacecolor="b", marker="x", markersize=5, linestyle="None")
plt.show(True)
ax.plot(P1, P2, BER3ThList, markerfacecolor="r", marker="o", markersize=5, linestyle="None", label="Theoritical")
ax.plot(P1, P2, BER3List, markerfacecolor="b", marker="x", markersize=5, linestyle="None", label="Measured")
ax.legend(loc="lower right")
plt.show(False)
plt.figure()
ax = plt.axes(projection="3d")
......@@ -93,9 +95,10 @@ def main():
ax.set_ylabel("P2")
ax.set_zlabel("BER2")
ax.set_title("Evolution of the 2nd user's BER for N={} users, depending on the power, with Pmax = {}, g = {} and σ = {}".format(N, Pmax, g, sigma))
ax.plot(P1, P2, BER2List, markerfacecolor="r", marker="o", markersize=5, linestyle="None")
ax.plot(P1, P2, BER2ThList, markerfacecolor="b", marker="x", markersize=5, linestyle="None")
plt.show(True)
ax.plot(P1, P2, BER2ThList, markerfacecolor="r", marker="o", markersize=5, linestyle="None", label="Theoritical")
ax.plot(P1, P2, BER2List, markerfacecolor="b", marker="x", markersize=5, linestyle="None", label="Measured")
ax.legend(loc="lower right")
plt.show(False)
plt.figure()
ax = plt.axes(projection="3d")
......@@ -103,8 +106,9 @@ def main():
ax.set_ylabel("P2")
ax.set_zlabel("BER1")
ax.set_title("Evolution of the 1rst user's BER for N={} users, depending on the power, with Pmax = {}, g = {} and σ = {}".format(N, Pmax, g, sigma))
ax.plot(P1, P2, BER1List, markerfacecolor="r", marker="o", markersize=5, linestyle="None")
ax.plot(P1, P2, BER1ThList, markerfacecolor="b", marker="x", markersize=5, linestyle="None")
ax.plot(P1, P2, BER1ThList, markerfacecolor="r", marker="o", markersize=5, linestyle="None", label="Theoritical")
ax.plot(P1, P2, BER1List, markerfacecolor="b", marker="x", markersize=5, linestyle="None", label="Measured")
ax.legend(loc="lower right")
plt.show(True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment