[Top][All Lists]

[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

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
  Znew = sum(Z)/2 + diff(Z)*100 * [-1,1];  % close to what we currently have
for bug #54551 without the ´min´ and ´max´

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:


  Message sent via Savannah

reply via email to

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