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

Close-button

World Mood 2

This plot is disabled.

  • Created by: Sam Mirsky
  • Latest result: Plot created
  • Created on: 20 Jan 2012
  • Liked: 17 times

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


2 comments

J.R.! Menzinger 12 months ago

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

J.R.! Menzinger 12 months ago

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