/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondCore/CTPPSPlugins/test/graph_check.py
14 строк
433 B
Andrea Bocci
Add missing newline at the end of file
27 фев 2024, 16:52
Не верифицирован
27 фев 2024, 16:52
d8ae18e
Код
Авторство
О чём код?
import pandas as pd import json import os import glob files = glob.glob(os.getcwd()+"/CondCore/CTPPSPlugins/test/results/*.json") print(os.getcwd()) for file in files: f = open(file) data = json.load(f) df = pd.DataFrame(data['data']) plot = df.plot.scatter(x='x', y='y', xlabel=data['annotations']['x_label'], ylabel=data['annotations']['y_label']) plot.get_figure().savefig(file.strip(".json")+".png")