[Top][All Lists]

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

Re: Problem plotting time on X axis

From: Fritz Sonnichsen
Subject: Re: Problem plotting time on X axis
Date: Wed, 14 Feb 2018 15:08:37 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

I tried that and it did not work. My "ser_date" is numbers like: 7.3706e+005


On 2/14/2018 2:25 PM, Przemek Klosowski wrote:
On 02/14/2018 02:00 PM, Fritz Sonnichsen wrote:
ser_date=datenum(dtmeT,timeFormat); %serial date is secs since 1/1/0000
  plot(ser_date,T ,'color','k'  );
  xlen = length(dtmeT)  ;
axis([0 xlen 20 35])

I think it's a manifestation of the magnitude bug in the default toolkit (fltk?). The problem is that fltk can't plot intervals that have a short span compared to the magnitude of the endpoints. Since you don't seem to care about the actual date, resetting the beginning to midnight works around that:

plot(ser_date-datenum("00:00:00"),T ,'color','k' )

Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:

reply via email to

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