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

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

[Octave-bug-tracker] [bug #46047] Strange labels in logarithmic plots


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #46047] Strange labels in logarithmic plots
Date: Thu, 24 Sep 2015 12:31:19 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

Follow-up Comment #1, bug #46047 (project octave):

Hi,

The problem seams to be that gnuplot rearranges ytick to not display 351 tick
labels by default. That is why it originally looks fine even though if you
retrieve the actual ticks stored in the graphics object you'll see that there
are 350 of those:


length (get (gca, "ytick"))
%% ->351
    

Now if you first do 


set (gca, "ytick",
10.^(-50:50:300),'yticklabel',{'$10^{-50}$','$10^{0}$','$10^{50}$','$10^{100}$','$10^{150}$','$10^{200}$','$10^{250}$','$10^{300}$'})
  

Then it works in both opengl and gnuplot toolkits. 

So I'd say the only issue I can see is octave not limiting the number of
yticks.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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