Skip to content
Permalink
Browse files
Latest changes
  • Loading branch information
harjaus committed May 1, 2020
1 parent c664898 commit 4c3682044a251d856185c7456d51e5e8d6a67b23
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
@@ -108,9 +108,14 @@ def plotHalstead(old, new):

# Percentage
plt.bar(i, halsteadTotalNew[i]/halsteadTotalOld[i]*100, color="#D35FB7")

print(halsteadTotalOld)
print(halsteadTotalNew)


plt.xticks(range(len(xNames)), xNames)

plt.scatter(0, 100, color="w")
# RAW
"""
plt.scatter(5.1, 2550, color="#1A85FF", marker="^", s=100)
@@ -169,12 +174,12 @@ def plotCC_MI(oldMI, newMI):
plt.scatter(0, 75, color="#D41159", marker="*", s=100)
plt.annotate("2020 System", (0, 75), textcoords="offset points", xytext=(10,-4))

plt.ylabel("Relative Percentage Metrics 2020 vs 2019")
plt.ylabel("Metrics Size")
plt.xlabel("Cyclomatic Complexity and Maintainability Index")
plt.title("CC and MI Relative Percentage Comparison")
plt.title("CC and MI Detailed Comparison")
plt.show()


if __name__=="__main__":
plotRaw(getJSON("std_fsai/raw.txt"), getJSON("ros_fsai/raw.txt"))
plotHalstead(getJSON("std_fsai/hal.txt"), getJSON("ros_fsai/hal.txt"))

BIN -5.44 KB (82%) compiledData/cc_mi_analysis.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN -108 Bytes (100%) compiledData/halsteadPercentage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c36820

Please sign in to comment.