help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to Plot grid lines every 7 days


From: Tim Pierce
Subject: Re: Trying to Plot grid lines every 7 days
Date: Wed, 9 Aug 2017 16:05:13 +0100

Yes, that must be it

The datetick in octave does something quite unpredictable from the example I gave, where the sin wave wouldbe intact, but it wold stretch toonly the 20th day, instead of the 30th

Thanks

On 9 August 2017 at 15:12, Nicholas Jankowski <address@hidden> wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]