final
This commit is contained in:
parent
1f87314e7f
commit
eadead968e
@ -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:
|
||||
|
||||

|
||||
|
40
plot.py
40
plot.py
@ -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',)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user