[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56983] Plotting constant values with small no
From: |
Roland Baudin |
Subject: |
[Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results |
Date: |
Wed, 2 Oct 2019 10:15:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
URL:
<https://savannah.gnu.org/bugs/?56983>
Summary: Plotting constant values with small noise gives
erratic results
Project: GNU Octave
Submitted by: roland65
Submitted on: mer. 02 oct. 2019 14:15:15 UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.1
Operating System: Any
_______________________________________________________
Details:
Here is the problematic code:
close all;
clear all;
s = 1e-3;
x = 100 * ones(1, 1000) + s * randn(1, 1000);
plot(x);
When s is higher than 1e-6, this plots (as expected) a noise around the mean
value 100.
When s = 1e-6, this plots a line that is sometimes at the top of the figure,
or at the bottom, or there is no line at all. The figure frame is corrupted,
etc. (see screenshot1).
When s = 1e-8, there is sometimes no frame in the figure. The line is often
not displayed (see screenshot2).
When s <= 1e-10, the plot correctly displays a line in the middle of the
figure and the frame is also displayed, as expected.
I was able to reproduce this issue in Octave 4.2.1 (windows), 4.4.1 (windows),
5.1.0 (windows), 5.1.0 (Ubuntu Linux 18.04).
The problem is the same with qt or fltk toolkit. I didn't test with Gnuplot.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56983>
_______________________________________________
Message postÃ© via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results,
Roland Baudin <=
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results, Roland Baudin, 2019/10/02
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results, Philip Nienhuis, 2019/10/02
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results, Roland Baudin, 2019/10/02
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results, John W. Eaton, 2019/10/02
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results, Pantxo Diribarne, 2019/10/03
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results, Pantxo Diribarne, 2019/10/03
- [Octave-bug-tracker] [bug #56983] Plotting constant values with small noise gives erratic results, Roland Baudin, 2019/10/03