From 0c8b1c5eca9afacedfb9800e5f66f7bcdb7943c4 Mon Sep 17 00:00:00 2001 From: Danila Gamkov Date: Fri, 25 Apr 2025 14:47:08 +0300 Subject: [PATCH] small correct readme, correct plot_flight_borders.py for plot in another devices --- .gitignore | 1 - README.markdown | 5 +++-- plot_flight_borders.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 1a60579..963083b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,4 @@ *.zip *.log *.txt -*.report_* /__pycache__ diff --git a/README.markdown b/README.markdown index b87de52..021e0f6 100644 --- a/README.markdown +++ b/README.markdown @@ -23,6 +23,7 @@ git clone http://heagit.cosmos.ru/gamkov/asotr_flight.git 3. Enter the repo: ``` cd +mkdir reports ``` ## Using @@ -45,7 +46,7 @@ csv data will be in directory: You might plot data by using shell-script (for MVN reports), for example: ``` cd -./plot_flight_borders.sh / 10.03.2025 23.04.2025 14 0 +./plot_flight_borders.sh /data/ 10.03.2025 23.04.2025 14 0 ``` where: 10.03.2025 - start date @@ -56,7 +57,7 @@ where: Or you might plot data by using python script directly, for example: ``` cd -python3 plot_flight_borders.py -s -c 100000 -a 01 -b 10.03.2025 -e 15.03.2025 -f 14 -d 0 -p 0 +python3 plot_flight_borders.py -s /data/ -c 100000 -a 01 -b 10.03.2025 -e 15.03.2025 -f 14 -d 0 -p 0 ``` Graphs with data are in the directory: diff --git a/plot_flight_borders.py b/plot_flight_borders.py index b36e237..e817d5c 100644 --- a/plot_flight_borders.py +++ b/plot_flight_borders.py @@ -114,7 +114,7 @@ def plot_asotr_borders(path_with_data, ch, asotr_kit, begin, end, font=14, cmd=0 for i in range(len(channels)): if channels[i] == 1: ax1.plot(data_dict["time_temp"], - data_dict['temp'].iloc[:,[i]], + data_dict['temp'].iloc[:,i], marker[i], linewidth=width[i], label=legend[i],) @@ -123,7 +123,7 @@ def plot_asotr_borders(path_with_data, ch, asotr_kit, begin, end, font=14, cmd=0 for i in range(len(channels)): if channels[i] == 1: ax1.plot(data_dict["time_temp_set"], - data_dict['temp_set'].iloc[:,[i]], + data_dict['temp_set'].iloc[:,i], marker[i], linewidth=width_set[i], label=legend_set[i],) @@ -132,7 +132,7 @@ def plot_asotr_borders(path_with_data, ch, asotr_kit, begin, end, font=14, cmd=0 for i in range(len(channels)): if channels[i] == 1: ax2.plot(data_dict["time_pow"], - data_dict['pow'].iloc[:,[i]], + data_dict['pow'].iloc[:,i], marker[i], linewidth=width[i], label=legend[i],)