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: Mike Miller
Subject: [Octave-bug-tracker] [bug #52268] Division by zero on legend
Date: Mon, 23 Oct 2017 16:40:52 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Update of bug #52268 (project octave):

                Category:   Plotting with gnuplot => Plotting               
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #5:

It seems to me the problem has to do with calling "hold on" before plotting
any data, then plotting a series that is vastly out of range of the axes that
are shown, which already messes up the plot even before legend is called.

For example


>> scale = 1000;
>> figure
>> xlabel a
>> ylabel b
>> hold on
>> plot (rand (20, 1) / scale)


This results in a figure that has a y axis scaled out of proportion and out of
the plot area. Calling legend now shows the original warning message, but
legend is not really the problem here. It's the interaction between a held
axes and the relative scaling of the data that is plotted next.

    _______________________________________________________

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]