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

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

[Octave-bug-tracker] [bug #39393] plotyy log scale results in linear tic


From: Ronald
Subject: [Octave-bug-tracker] [bug #39393] plotyy log scale results in linear ticks
Date: Wed, 03 Jul 2013 08:21:55 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0

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

Hello Rik,

Thank you for pointing out the "@semilogx" option for me. This does indeed do
what i need. However the original bug is still valid.

Octave should threat XScale like both Matlab and gnuplot threat it. Which is
that XTick, XTickLabel and Xminortick values should be updated when XScale
changes value.

In Matlab there seems to be no change in behavior between

[ax, h1, h2]=plotyy(1:100,1:100,1:100,(1:100)/2)
set(ax(1),'XScale','log');
set(ax(2),'XScale','log');


and

 [ax, h1, h2]=plotyy(1:100,1:100,1:100,(1:100)/2, @semilogx, @semilogx)


In Matlab (2012b version):

[ax, h1, h2]=plotyy(1:100,1:100,1:100,(1:100)/2);
get(ax(1),'XTick')
ans =

     0    10    20    30    40    50    60    70    80    90   100
get(ax(1),'XTickLabel')
ans =
0  
10 
20 
30 
40 
50 
60 
70 
80 
90 
100
get(ax(1),'Xminortick')
ans =
off
set(ax,'XScale','log')
get(ax(1),'XTick')
ans =
     1    10   100
get(ax(1),'XTickLabel')
ans =
0
1
2
get(ax(1),'Xminortick')
ans =
on


In Matlab when XTickmode=manual, only the Xminortick changes when XScale
changes. XTick values and XTickLabel remain unchanged.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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