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

Merge branch 'fix_error_in_plot' into 'main'

Use a more generic way to use an hour formatter

See merge request !3
parents cd5eb4fe f4e0fc67
No related branches found
No related tags found
1 merge request!3Use a more generic way to use an hour formatter
Pipeline #34105 passed
......@@ -286,8 +286,8 @@ def make_plot(data_array, time_axis, frequency_axis, station_name, plot_full_pat
ax.set_xlim(
[datetime(year=datetime_axis[0].year, month=datetime_axis[0].month, day=datetime_axis[0].day,
hour=datetime_axis[0].hour),
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[-1].hour + 1) % 24)]
datetime(year=datetime_axis[0].year, month=datetime_axis[0].month, day=datetime_axis[0].day,
hour=datetime_axis[0].hour) + timedelta(hours=1)]
)
ax.set_xlabel('Time (UT)')
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