|
From: | Tim Pierce |
Subject: | Re: Trying to Plot grid lines every 7 days |
Date: | Wed, 9 Aug 2017 16:05:13 +0100 |
The following gives me the same results in Matlab and Octave. Is
this, using 'keeplimits' and/or 'keepticks' what you're looking for?
plot( 1:30, sin((1:30) .* (2 * pi / 30) ) )
grid on
set (gca, 'xtick', 1:7:30)
datetick ('x', 'ddd dd', 'keepticks', 'keeplimits')
output images attached
[Prev in Thread] | Current Thread | [Next in Thread] |