Since you are new, let us show you how Trendy works.

Close-button

Plot for Cumulative downloads of the Object Oriented Digital Clock for trailing 180 days

  • Created by: James Kristoff
  • Latest result: Plot created
  • Created on: 05 Apr 2012

Every data point in this plot represents the cumulative downloads of the Object Oriented Digital Clock from the MathWorks File Exchange over the 30 days prior to the data point.

This can be used to track how popular the entry is over time. The data from the most recent 180 days are being displayed.

Plot Image
% Cumulative downloads of the Object Oriented Digital Clock for trailing 30 days
%   time vector is: time1568
%   data vector is: data1568

if(length(time1568) >= 180)
  offset = 180;
else
  offset = length(time1568)-1;
end

time = time1568(end-offset:end);
data = data1568(end-offset:end);

%plot the data
h = plot(time, data, '-b');
xlabel('Date of data collection');
ylabel('30 Day Trailing Cumulative Downloads');

%set the y limits
ylim([0 70]);

%get the handle to the axes to set the x ticks
ha = get(h, 'Parent');
if(mod(length(time),2))
  xTicks = [time(1):2:time(end) time(end)];
else
  xTicks = [time(1):2:time(end)];
end
set(ha, 'XTick', xTicks);
set(ha,'XGrid','on','YGrid','on');

%Format the dates on the x axis
%datetick('x', 'ddd', 'keepticks', 'keeplimits');
datetick('x', 2);
Tags:

    Add Tags


    0 comments