Specify specific Interval between datetime values on x axis of plot
65 vues (au cours des 30 derniers jours)
Ben Whitby le 17 Mar 2023
I am plotting some time series data. Where the times are specified in datetime format starting '01-Oct-2021' and ending '28-Feb-2023 23:54:59'. I would like to plot the data with specific labels on the x axis. The code I have at the moment is as follows:
ax.FontSize = 16;
ylabel('Load Demand (kW)','FontSize',20)
What I want to do is specfy x labels at '01-Oct-2021', '30-Nov-2021 23:59:59','28-Feb-2022 23:59:59','31-May-2022 23:59:59','31-Aug-2022 23:59:59', '30-Nov-2022 23:59:59','28-Feb-2023 23:54:59'
I would also like to add verticle dashed lines at each of those x axis dates. Is this possible???