octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #33869] minor ticks disappear from log plot wi


From: Ronald
Subject: [Octave-bug-tracker] [bug #33869] minor ticks disappear from log plot with specified xticklabels
Date: Thu, 10 May 2012 08:36:07 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0

Follow-up Comment #2, bug #33869 (project octave):

I too ran into this issue in octave and gnuplot. (gnuplot 4.4 patchlevel 4 and
octave 3.6.1). I found this behavior to be the same with linear plots. For me
it was the minor grid (which is linked to the minor ticks) that disappeared
e.g:

plot(0:1:10,0:1:10)
grid minor on %minor grid appears as expected
set (gca(), "xticklabel", {'0', '2', '4', '6', '8', '10'}) %x minor grid
disappeares
set (gca(), "yticklabel", {'0', '2', '4', '6', '8', '10'}) %y minor grid
disappeares as well

After some fiddling around in gnuplot I came to conclude that apparently you
no longer get to enjoy automatic "mytics" when you "set ytics". When you want
minor tics you have to specify them in "set ytics" with a trailing "1" which
indicates a minor-tics. In your gnuplot example this would be something like
(for minor ticks inbetween 10^-4 and 10^-3:

set ytics ("10^{-4}" 1e-4, "" 2e-4 1, "" 3e-4 1, "" 4e-4 1, "" 5e-4 1, "" 6e-4
1, "" 7e-4 1, "" 8e-4 1, "" 9e-4 1, "" 1e-3, "" 2e-3 1, "" 3e-3 1, "" 4e-3 1,
"" 5e-3 1, "" 6e-3 1, "" 7e-3 1, "" 8e-3 1, "" 9e-3 1, "10^{-2}" 1e-2,
"10^{0}" 1, "10^{2}" 1e2, "10^{4}" 1e4)

I'm guessing this is intended behavior of gnuplot, in which case octave should
work around it by specifying the minor ticks with "set ytics" or "set xtics"
when ticklabels are set and minor ticks are expected.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33869>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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