bugGNU Octave - Bugs: bug #62481, Cannot set exactly xlim / ylim at...


bug #62481: Cannot set exactly xlim / ylim at very small values

Submitter:  George Apostolopoulos <gapost>
Submitted:  Tue 17 May 2022 02:09:06 PM UTC
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Thu 19 May 2022 09:41:51 AM UTC, comment #2: 

Re-opening while slightly shifting the scope:
The condition that is used to switch between using the limits given by the user and extending them automatically to allow a reasonable render could be improved.

Example for which it might still be reasonable to accept the limits passed by the user (but that doesn't happen currently):

A = 1e-9;
ylim([-1 1]*A);

See also this discussion on discourse:

Markus M├╝tzel <mmuetzel>
Project Member
Tue 17 May 2022 02:47:56 PM UTC, comment #1: 

Closing as duplicate of bug #62241 down to trying to set very small axis limits. See that bug report for how to work with such small limits.

Arun Giridhar <arungiridhar>
Project Member
Tue 17 May 2022 02:09:06 PM UTC, original submission:  

Running the following commands:

ylim([0 1e-20])


ans =

            0   1.2100e-20

i.e. the upper limit is not set correctly. The y-axis in the corresponding figure window has the last tick at 1.2e-20 and goes up to 1.21e-20.

This occurs with both ylim and xlim when they are called with input [0 d], [-d 0] or [-d d], where 0 < d < 1e-8.

Same behavior with qt and gnuplot graphics toolkit.

Tested in Octave 6.4.0 and 7.1.0 under Ubuntu 20.04.

George Apostolopoulos <gapost>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by gapost (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 project members can vote.





    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-19 mmuetzel StatusDuplicate Confirmed
        Open/ClosedClosed Open
        Release6.4.0 dev
        Operating SystemGNU/Linux Any
    2022-05-17 arungiridhar StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.9