#1110 Tics for very small numbers display 0.00000...0

closed-fixed
nobody
None
5
2012-04-30
2012-04-03
Anonymous
No

I'm running versions 4.4, 4.5, 4.6 and 4.7 under 64bit Linux Mint 10.

It seems since v4.5 the default tic labelling algorithm is faulty. For very small numbers it does not switch to scientific notation anymore, but displays 0.00000...0. v4.4 shows the correct behaviour, but versions 4.5, 4.6 and 4.7 don't.

The problem should be easily reproduced by:
plot sin(x)*10e-15

Discussion

  • Ethan Merritt

    Ethan Merritt - 2012-04-03

    I will investigate.
    Meanwhile, setting the format explicitly returns the behavior to what you expect:
    For example:
    set format "%g"

     
  • Ethan Merritt

    Ethan Merritt - 2012-04-03
    • status: open --> pending-fixed
     
  • Ethan Merritt

    Ethan Merritt - 2012-04-03

    To see why the default changed in 4.5, compare 4.4 and 4.5 on this variant of your test case:

    plot 1. + sin(x)*10e-15

    The older default produced uselessly identical tic labels spanning the entire axis. The new default uses however many decimal places are necessary to show a difference between the tic labels at both extremes.

    But I agree it is a bug that the new default failed to consider the special case where the axis range spans 0. Fix pending in CVS.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-04-30
    • status: pending-fixed --> open-fixed
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-04-30

    I see your point, why in your "1. + ..." example the old output is not so useful. Setting the format works nicely.

    I just checked out the latest CVS version, and this works as it should!

    So, thanks for fixing this :)

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-04-30

    Sorry, I meant to close the report ...

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-04-30
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks