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

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

[Octave-bug-tracker] [bug #51861] loglog() does not handle multiple nega


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #51861] loglog() does not handle multiple negative data properly
Date: Sat, 26 Aug 2017 22:15:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

URL:
  <http://savannah.gnu.org/bugs/?51861>

                 Summary: loglog() does not handle multiple negative data
properly
                 Project: GNU Octave
            Submitted by: dasergatskov
            Submitted on: Sun 27 Aug 2017 02:15:33 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: Any

    _______________________________________________________

Details:

With either 4.2.1 or recent hg:


octave:1> loglog((-1:1),1)
error: out of memory or dimension too large for Octave's index type
error: called from
    __line__ at line 120 column 16
    line at line 56 column 8
    __plt__>__plt2vs__ at line 468 column 15
    __plt__>__plt2__ at line 246 column 14
    __plt__ at line 113 column 17
    loglog at line 60 column 10
octave:1> loglog((-1:1),1)
error: set: "cameratarget" must be finite
error: called from
    delete at line 60 column 5
    newplot at line 202 column 11
    loglog at line 53 column 9


That actually messes up graphics subsystem for good, e.g. doing
simple plot(1:3) results in the same "error: set: "cameratarget" must be
finite"

Note, one needs more than one illegal data to trigger this problem:


octave:1> loglog ([-1, 1, 2])
warning: axis: omitting non-positive data in log plot
warning: called from
    __line__ at line 120 column 16
    line at line 56 column 8
    __plt__>__plt2vv__ at line 502 column 10
    __plt__>__plt2__ at line 248 column 14
    __plt__>__plt1__ at line 207 column 10
    __plt__ at line 119 column 17
    loglog at line 60 column 10


looks fine.

Dmitri.
-- 







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51861>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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