bugGNU Octave - Bugs: bug #49437, Wrong tick labels (e.g. 1.10e-4)...

 
 

bug #49437: Wrong tick labels (e.g. 1.10e-4) on logarithmic axis (MS Windows)

Submitter:  Martin Kunz <mkunz>
Submitted:  Tue 25 Oct 2016 09:23:55 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  mkunz Open/Closed:  * Closed
Release:  * 4.2.0-rc2 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Oct 2016 06:46:41 AM UTC, comment #4: 

That was fast. Thanks Rik!

Martin Kunz <mkunz>
Wed 26 Oct 2016 04:54:48 AM UTC, comment #3: 

I fixed this on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/a17848537a67).  I'm not sure whether this will make it in to 4.2.0 or the bug fix release 4.2.1.

There were multiple issues, but the problme for Windows machines was the roundoff error in std::pow that has been seen before.

Rik <rik5>
Group administrator
Tue 25 Oct 2016 10:56:53 PM UTC, comment #2: 

This seems to be round-off error that we have encountered before on MS Windows platform with respect to exponents and the std::pow function.  I think I have a fix, but it will take me a few hours to build with MXE and test.

Rik <rik5>
Group administrator
Tue 25 Oct 2016 09:45:39 PM UTC, comment #1: 

WTF Microsoft?  I can reproduce this on a Windows XP virtual machine, but a Linux PC works just fine.  It has something to do with using the mouse as well, because I can manually zoom the plot with


zoom (0.5)


And the labels are then fine.

It seems to be a problem whenever you get to 10^-4 power.  Smaller powers are okay.  Very strange.

Rik <rik5>
Group administrator
Tue 25 Oct 2016 09:23:55 AM UTC, original submission:  

The following lines


graphics_toolkit qt
loglog(1./((1:10).^8))


produce initially a nice looking plot. After zooming out once by turning the mouse wheel strange labels appear on the y ticks:


>> get(gca,"yticklabel")
ans =
{
  [1,1] = 1.10^{-15}
  [1,2] = 1.10^{-14}
  [1,3] = 1.10^{-13}
  [1,4] = 1.10^{-12}
  [1,5] = 1.10^{-11}
  [1,6] = 1.10^{-10}
  [1,7] = 1.10^{-9}
  [1,8] = 1.10^{-8}
  [1,9] = 1.10^{-7}
  [1,10] = 1.10^{-6}
  [1,11] = 1.10^{-5}
  [1,12] = 1.10^{-4}
  [1,13] = 10^{-3}
  [1,14] = 10^{-2}
  [1,15] = 10^{-1}
  [1,16] = 10^{0}
}


Switching a "screwed" figure to the FLTK toolkit preserves the faulty labels whereas they do not show up in figures that were set to FLTK before the loglog command.

Martin Kunz <mkunz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mkunz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-26 rik5 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2016-10-25 rik5 Carbon-Copy- Added pantxo
    2016-10-25 rik5 Dependencies- Depends on bugs #46055
    2016-10-25 rik5 StatusConfirmed In Progress
    2016-10-25 rik5 StatusNone Confirmed
        SummaryWrong tick labels (e.g. 1.10e-4) on logarithmic axis Wrong tick labels (e.g. 1.10e-4) on logarithmic axis (MS Windows)

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code