help-octave
[Top][All Lists]
Advanced

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

BUG: If I manually set xticks on figure, minor x-ticks and grid miss out


From: Tim Pierce
Subject: BUG: If I manually set xticks on figure, minor x-ticks and grid miss out where major ticks 'would; have been
Date: Fri, 18 Aug 2017 05:49:53 +0100

Octave 4.0.0


If I manually set major grid lines via xtick (e.g.to 7 for a graph of days in a month )

Code:

    figure 1
    plot( 1:30)
    set( gca, 'xtick', 0:7:30 )
    set( gca, 'xminortick', 'on' )
     grid on

Visibly it will miss out where the major x-ticks originally would have expected to have been.

In my picture  5,10,15,20,25...

Inline images 1

It gets pretty glaring if you try to use minor x gridlines - as I wanted to for a presentation

Inline images 2

reply via email to

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