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

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

[Octave-bug-tracker] [bug #63820] ylim settings incorrect


From: anonymous
Subject: [Octave-bug-tracker] [bug #63820] ylim settings incorrect
Date: Mon, 20 Feb 2023 09:31:59 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63820>

                 Summary: ylim settings incorrect
                   Group: GNU Octave
               Submitter: None
               Submitted: Mon 20 Feb 2023 02:31:55 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Florian Kerle
        Originator Email: flo.kerle@gmx.at
             Open/Closed: Open
                 Release: 7.3.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 20 Feb 2023 02:31:55 PM UTC By: Anonymous
I'm at work, can test later on linux (debian) if required.

TL;DR:
clear all;
figure()
plot(1e-11:1e-11:1e-10)
print("correct.png", "-dpng")
ylim([0 1e-10])   % <-- NOTE: upper bound not correctly applied
print("wrong.png", "-dpng")  % <-- WRONG: upper y limit is reset -> image is
not what was desplayed before (regardless of wrong y limit)

## Summary
I've encountered a problem with setting small (presumably) y limits.
Reproducable on "qt" and "fltk". (gnuplot does work correctly, afaik)

1. When applying the y limit as in the above example, the correct limit is not
set. Also manually setting the limit via `set(get(gcf).currentaxes, 'ylim', [0
1e-10])` does not set/display the correct upper y limit.

2. This presumably leads to some weiredness when printing (or saving via the
graphical_toolkit "Save As" menu, fwiw):
The upper y limit is set the some incorrect value, distorting the plot
completely.






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Mon 20 Feb 2023 02:31:55 PM UTC  Name: correct.png  Size: 21KiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=54383>
-------------------------------------------------------
Date: Mon 20 Feb 2023 02:31:55 PM UTC  Name: wrong.png  Size: 21KiB   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=54384>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63820>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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