[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim set
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings |
Date: |
Fri, 11 Sep 2020 12:40:57 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 Edg/85.0.564.44 |
Follow-up Comment #13, bug #58956 (project octave):
Maybe we could use some logic like this in the C++ code (written in Octave for
simplicity):
Z = [707106781186.04761, 707106781187.04761];
if sum(Z)*eps('single')*5 > diff(Z)*100
Znew = sum(Z)/2 + sum(Z)*eps('single')*5 * [-1,1]; % 5 is an arbitrary
value here. Choose something that works
else
Znew = sum(Z)/2 + diff(Z)*100 * [-1,1]; % close to what we currently have
for bug #54551 without the ´min´ and ´max´
end
span = diff(single(Znew))
If I got this right, ´span´ should always be greater than 0 after that for
any Z with Z(1)<Z(2).
I'm still struggling to understand why the ´min´ and ´max´ that we
currently have are needed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58956>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Hg200, 2020/09/07
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Markus Mützel, 2020/09/07
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Hg200, 2020/09/07
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings,
Markus Mützel <=
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Markus Mützel, 2020/09/13
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Markus Mützel, 2020/09/13
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Hg200, 2020/09/13
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Markus Mützel, 2020/09/13
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Markus Mützel, 2020/09/14
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Hg200, 2020/09/20
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Markus Mützel, 2020/09/20
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Hg200, 2020/09/20
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Markus Mützel, 2020/09/20
- [Octave-bug-tracker] [bug #58956] Empty plot for certain xlim / ylim settings, Hg200, 2020/09/20