[Top][All Lists]

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

Re: Problem plotting time on X axis

From: Przemek Klosowski
Subject: Re: Problem plotting time on X axis
Date: Wed, 14 Feb 2018 14:25:13 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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' )

reply via email to

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