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

Merge branch 'fix_error_in_plot' into 'main'

Fix error in datatime for plot

See merge request !2
parents f450cc56 357f9233
No related branches found
No related tags found
1 merge request!2Fix error in datatime for plot
Pipeline #34102 passed
...@@ -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