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

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

[Octave-bug-tracker] [bug #56798] semilogy - "omitting non-positive data


From: anonymous
Subject: [Octave-bug-tracker] [bug #56798] semilogy - "omitting non-positive data in log plot" and empty plot with all positive data
Date: Fri, 23 Aug 2019 07:40:43 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.9) Gecko/20100101 Goanna/4.3 Firefox/60.9 PaleMoon/28.6.1

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

                 Summary: semilogy - "omitting non-positive data in log plot"
and empty plot with all positive data
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 23 Aug 2019 11:40:42 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Andrea Baldoni
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I found a behavior I don't understand.

This code:
(please note the abs function; f come from fft,
abs(f) has values from 0 to ~0.53, minimum non-zero value
is about 1e-15 - of course no negative values)

semilogy(range, abs(f([range])));

produce a completely empty plot and this warning

warning: axis: omitting non-positive data in log plot
warning: called from
    __line__ at line 122 column 16
    line at line 56 column 8
    __plt__>__plt2vv__ at line 500 column 10
    __plt__>__plt2__ at line 246 column 14
    __plt__ at line 113 column 17
    semilogy at line 60 column 10
    myfile.m at line 75 column 1

but works if I modify it in:

semilogy(range, abs(f([range]))+10^-14);

(or 10^-30, or 10^-50, just changes the scale of plot).

plot() works perfectly without adding anything.

Where is the problem? It's really a bug in semilogy?

Andrea Baldoni




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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