This commit is contained in:
Roman Krivonos 2024-12-02 17:03:47 +03:00
parent 1f87314e7f
commit eadead968e
2 changed files with 40 additions and 2 deletions

View File

@ -14,6 +14,6 @@ Dwnload SRG/ART-XC monitor CSV file from https://monitor.srg.cosmos.ru/
# step 3
insert filename to plot.py and run ```python plot.py```. Result will be saved to monitor.png as shown below:
insert filename to plot.py and run ```python plot.py```. Result will be saved to ```monitor.png``` as shown below:
![ezcv logo](http://heagit.cosmos.ru/artxc/monitor/raw/branch/main/monitor.png)

40
plot.py
View File

@ -1,3 +1,40 @@
#!/usr/bin/env python
"""
НАЗВАНИЕ:
plot.py
НАЗНАЧЕНИЕ:
Простоя скрипт для отрисовки файла, выгруженного с Л2 монитора https://monitor.srg.cosmos.ru/
ВЫЗОВ:
conda activate
./plot.py
УПРАВЛЕНИЕ:
Название файла надо вставить внутрь скрипта (ищите default.csv)
ПАРАМЕТРЫ:
N/A
ВЫВОД:
Файл monitor.png записывается в текущую директорию
ИСТОРИЯ:
Роман Кривонос, ИКИ РАН, krivonos@cosmos.ru
Декабрь 2024
"""
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import ticker
@ -25,8 +62,9 @@ ax.tick_params(axis="both", width=1, labelsize=14)
for axis in ['top','bottom','left','right']:
ax.spines[axis].set_linewidth(1)
cl='black'
# Сюда надо вставить название файла, скачанного с https://monitor.srg.cosmos.ru/
df = pd.read_csv('default.csv',)