Skip to content
Snippets Groups Projects
Commit 2eace924 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Fix error in datatime for plot

parent f450cc56
No related branches found
No related tags found
1 merge request!2Fix error in datatime for plot
Checking pipeline status
...@@ -286,8 +286,8 @@ def make_plot(data_array, time_axis, frequency_axis, station_name, plot_full_pat ...@@ -286,8 +286,8 @@ def make_plot(data_array, time_axis, frequency_axis, station_name, plot_full_pat
ax.set_xlim( ax.set_xlim(
[datetime(year=datetime_axis[0].year, month=datetime_axis[0].month, day=datetime_axis[0].day, [datetime(year=datetime_axis[0].year, month=datetime_axis[0].month, day=datetime_axis[0].day,
hour=datetime_axis[0].hour), hour=datetime_axis[0].hour),
datetime(year=datetime_axis[0].year, month=datetime_axis[0].month, day=datetime_axis[0].day, datetime(year=datetime_axis[-1].year, month=datetime_axis[-1].month, day=datetime_axis[-1].day + (datetime_axis[-1].hour + 1) // 24),
hour=datetime_axis[0].hour + 1)] hour=(datetime_axis[-1].hour + 1) % 24 )]
) )
ax.set_xlabel('Time (UT)') ax.set_xlabel('Time (UT)')
ax.set_ylabel('Frequency (MHz)') ax.set_ylabel('Frequency (MHz)')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment