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

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

[Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() an


From: anonymous
Subject: [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim])
Date: Sun, 24 Jul 2016 13:25:39 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

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

                 Summary: Matlab compatibility for semilogx() and xlim([0
uplim]) 
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 24 Jul 2016 01:25:37 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Franz Wankelhuber
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

If you're trying to plot with semilogx and scaling the x-axis with xlim from 0
to some upper value, the lower bound at 0 in xlim causes a 

opengl_renderer: data values greater than float capacity.  (1) Scale data, or
(2) Use gnuplot

warning. No plot output is produced in this case.

Some test code to reproduce the warning:


xf = 1:2048;
fs = 48000;
semilogx(linspace(0, fs, 2048), xf);
xlim([0 fs/2]);


Matlab seems to avoid the 0 lower limit problem by simply omitting the very
first sample in the vector to be plotted.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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