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

[Pkg-octave-devel] Bug#783624: Bad plotted data against time with long arrays



Dear Maintainer,

The bug arises using Octave 3.8.2, when plotting an array of data against an array of times. Times is an array created with datenum with a step of 10 minutes between records. The trend of plotted data is made by segments and it is not continuous as it should be. Plotting data alone, not against time, or using Octave 3.6.2 gives a correct curve. I attach the m-file and the dataset need to reproduce the bug.

Marco
clear;
close all;

curr = load('current.dat');

tt = datenum(curr(:,3),curr(:,1),curr(:,2),curr(:,4),curr(:,5));

ttr = tt(1:80);
currr = curr(1:80,6);

figure;
plot(ttr,currr);

figure;
plot(currr);

Attachment: current.dat
Description: Binary data


Reply to: