3 Star 0 Fork 0

shouhou/BlockChain-plot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.py 714 Bytes
一键复制 编辑 原始数据 按行查看 历史
shouhou 提交于 2022-09-24 15:19 . 加入pie图
from File import *
from Plot import *
def test_bar():
men_means = [8457.031, 26788.493, 44742.531, 61611.609, 81512.44908]
same_color_bar([men_means, men_means, men_means], [0, 20000, 40000, 60000, 80000, 100000],
"resources/img/bpfl/test2.png")
def test_plot():
base_path = "./resources/data/"
file_name = ["BFLC无恶意.log", "BFLC10恶意.log", "BFLC20恶意.log", "BFLC30恶意.log", "BFLC40恶意.log", "BFLC50恶意.log"]
plot_value = []
for name in file_name:
plot_value.append(read_acc_list(base_path + name))
multi_plot(plot_value, [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7], "resources/img/bpfl/BFLC.png")
if __name__ == '__main__':
test_plot()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/shouhou_123/block-chain-plot.git
git@gitee.com:shouhou_123/block-chain-plot.git
shouhou_123
block-chain-plot
BlockChain-plot
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385