The Trendy application is being retired in the new year. The new web application, ThingSpeak, offers similar functionality. We recommend that active Trendy users who are looking to create new trends use ThingSpeak. To begin collecting your data in ThingSpeak, please read the tutorial : ThingSpeak for Trendy users. Although Trendy no longer allows the creation of new trends, the application will still remain accessible until January 13, 2016. Until that date, you can view your current trends and download your data. After that date, your data will no longer be accessible. Thanks for using Trendy and we encourage you to check out ThingSpeak.

Close-button

World Mood 2

Included from trend description:

Scrapes Twitter to find "Mood of the World". This is based on the Twitter Mood Light project by RandomMatrix

Plot Image
% time1237 and data1237 available for use
% for Sadness Tweets/min
% 
% time1236 and data1236 available for use
% for Envy Tweets/min
% 
% time1235 and data1235 available for use
% for Anger Tweets/min
% 
% time1234 and data1234 available for use
% for Surprise Tweets/min
% 
% time1233 and data1233 available for use
% for Joy Tweets/Min
% 
% time1227 and data1227 available for use
% for Love Tweets/Min
% 
% Fear Tweets/min
%   time vector is: time1238
%   data vector is: data1238

% ax1 = subplot(2,1,1);
plot(time1227,data1227, '-+', 'Color', [1 0.5 192/255]  );
hold on;
plot(time1233,data1233, '--o', 'Color', [0.8 0.8 0] );
plot(time1234,data1234, ':x', 'Color', [1 0.5 0]  );
plot(time1235,data1235, '-*', 'Color', [1 0 0]  );
plot(time1236,data1236, '-x', 'Color', [0 1 0] );
% ax2 = subplot(2,1,2);
plot(time1237,data1237, ':*', 'Color', [0 0.5 1]  );
plot(time1238,data1238, '--x', 'Color', [0 0 0]  );
datetick
legend('Love', 'Joy', 'Surprise', 'Anger', 'Envy', 'Sadness', 'Fear', 'Location', 'NW')
title('Tweets/min')
ylim([0 3000]);

% linkaxes([ax1 ax2],'x')
Tags:

Add Tags


3 comments

Beatiful but... what about log-scale ;-)

Try to add this code at the end:
%%
set(gcf, 'Position',[416 45 663 770])

yticks = [1 10 100 1000];
set(gca, 'YScale','log' , ...
'YLim',[1 8000] , ...
'YTick',yticks , ...
'YtickLabel',strsplit(num2str(yticks)))

legend('Love', 'Joy', 'Surprise', 'Anger', 'Envy', 'Sadness', 'Fear', ...
'Location','SO' , 'Orientation','horizontal')

xlabel({'Time' ; ' '})

Nice and its realistic....watch the clustering of different moods...its amazingly correct.