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

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

[Octave-bug-tracker] [bug #52268] Division by zero on legend


From: anonymous
Subject: [Octave-bug-tracker] [bug #52268] Division by zero on legend
Date: Mon, 23 Oct 2017 10:01:09 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 OPR/48.0.2685.50

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

                 Summary: Division by zero on legend
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 23 Oct 2017 02:01:07 PM UTC
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The following script produces a weird warning about division by zero in the
legend code.

load xx % loads a data file (attached) 
figure(4)
xlabel('age')
ylabel('var field')
hold on
plot(res(1,:),res(5,:),'b;sim-up;')

This produces the warnings 
#warning: division by zero
warning: called from
    legend at line 815 column 20
    __plt__ at line 152 column 7
    plot at line 223 column 10
warning: division by zero
warning: called from
    legend at line 900 column 11
    __plt__ at line 152 column 7
    plot at line 223 column 10

In legend.m there is a division by lpos(3) on those lines.

I have been trying to narrow it down, but 
interestingly, most variants work ok....


octave-cli -v
GNU Octave, version 4.2.1
I'm using gnuplot but fltk also gives the problem.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 23 Oct 2017 02:01:07 PM UTC  Name: xx  Size: 3KiB   By: None

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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