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

Close-button

Comments

Thanks, Ned. Very nice plot!

over 1 year ago

You are right, Jan! Congratulations, and sorry for not having your name up there right away!

over 1 year ago

It seems that player table needs an update :-)

over 1 year ago

This is a cumsum histogram, isn't it? Nice!

over 1 year ago

About your code inprovement: Yes! you're right! but the function urlfilter does also an urlreal call, and since I have taken yet the hmtl code in the loop, I decided to get the number by my self... ;-)

over 1 year ago

Thanks!

Yes I found not fair to say I'm the top #N from 25k Players, wenn soooo many does not have score at all... ;-)

over 1 year ago

Ha ha :-D Newer expected so many ghost-players. Like it!

As well as your code, you can use:
pre='http://www.mathworks.co.uk/matlabcentral/cody/players';
zero='?term=score%3A0';
pattern='1 – 50 of ';
[-urlfilter([pre zero],pattern) 0]+urlfilter(pre,pattern);

over 1 year ago

They updated the function "updatetrend.m"... isn't it? :-/

over 1 year ago

Maybe is it more interesting to collect this data hourly... ;-)

over 1 year ago

How can we see the code that was used to extract the data from the web-site? I am interested in doing something similar but cannot figure out how to do the data scraping. Many of the sites do not seem to use pure html but have java mixed in. I am interested to find out more.

over 1 year ago

Can you reactivate this trend? will be nice! ;-)

over 1 year ago

Conan made a SURGE!

over 1 year ago

Amazing! You created a whole universe for your Blockland.

[ES] Me descubro ante Usted!!

over 1 year ago

I must give credit to the following site for the inspiration and pointing me to the source data:

http://www.gridwatch.templar.co.uk/

over 1 year ago

And where is Chelsea may I ask?

over 1 year ago

try this correction:

if isempty(count)
count = {nan}
end

;-)

almost 2 years ago

Note: the country name code for Spain is "ES" and not "sp" ;-) http://en.wikipedia.org/wiki/ISO_3166-1

almost 2 years ago

BTW, it is getting cold here in Illinois. Which means we have to change the range of the Y-axis unfortunately!

almost 2 years ago

The astute will notice that there are breaks in the data. This is because we had to power down our Raspberry Pi Model A a few times.
Sadly, our Model A is not in a good place right now. We rebuilt the kernel and it will no longer shut down!

almost 2 years ago

Now lets see Honolulu vs Fairbanks.

almost 2 years ago

The second subplot now displays the last 30 records

almost 2 years ago

HAHAHA Great!!

almost 2 years ago

Fixed a Nan issue :(
Now it is ok there is one opportunity to get a matlab job in my region ;)

almost 2 years ago

I know, i know... just for fun! ;-)

almost 2 years ago

Ok I reset data to the previous trend :)
I agree with your comment even if I didn't do it on purpose !

almost 2 years ago

No, no, no!! I said it was fine as it was!! ;-)
Now it is broken! :'-(
Try this:
% as of 15-Nov-2012 (badges appear) :
url = 'http://www.mathworks.com/matlabcentral/cody/players';
html = urlread(url);
e = regexp(html, '^span class=''sort_highlight''v(\d*?)^/spanvScore','tokens');
for ii = 1 :50
scoring(ii) = str2double(e{ii}{1});
end
updatetrend(scoring)
Note: on the regexp '^' must be changed by 'less than' ans 'v' must be changed by 'bigger than' (it was not displayed correctly on this comentar).

almost 2 years ago

Nooooo!! it was nice!!! because of this separation of 1000 to 2000 points... we could calculate the time the 50th player reaches the 10k mark... :-D

almost 2 years ago

lol not is is fixed ! In the trend only the 4 first numbers were taken , therefore a score of 10000 points became a score of 1000

almost 2 years ago

Trends aren't scalars. You can update a trend with more than one element, but this must be a vector.

Take a look hier:
http://www.mathworks.de/matlabcentral/trendy/trends/2048
and here:
http://www.mathworks.de/matlabcentral/trendy/trends/2073

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

almost 2 years ago

Ii looks very nice this jumps of the +10k Scores... ;-)

almost 2 years ago

I made yesterday some new plots and I tested some possibilities to make the plots nicer.

My choice was at the end to place the legend "SouthOutside", but first I created the figure with a defined position, like this:
figure('Position',[440 28 560 970])

that means a larger figure, so it fits better on this web design. ;-)

Also I added an empty line on the x-label, so it's shown separeted to the x-ticks.

Take a look to the code of my plots. I will appreciate your comments.

almost 2 years ago

Thanks!! The only error is the position of the arrows, it isn't correct anymore since the figure is exported... On a PC works fine the code.

almost 2 years ago

Cool plot! (and very nice effects with html markup, annotations, ticklabels, etc.)

almost 2 years ago

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

almost 2 years ago

Hi José:

I'm puzzled by that too. I'll keep working at it, but in the meantime, I changed your squared letters so they will display. I know you want your é and your ó back, but for now I think this is better than little white boxes.

almost 2 years ago

Why looks now my name on the legend so "squared"?? :-(

here it looks good: http://www.mathworks.de/matlabcentral/trendy/plots/1167

almost 2 years ago

There is a new player on the top 10... Mr. Clemens Giegerich! ;-)

about 2 years ago

When badges were added to Cody (end of 2012) it has created a bug in this graphic which made me to decrease to 3rd to 12th place... which is BTW my current place now.

about 2 years ago

Hey, heeeeeey!!! I'm also on this (veeeery) nice plot!! ;-)

about 2 years ago

What caused the cliff-like falloff behavior, recently and a couple times earlier? The recent drops are quite precipitous and don't look like they're caused by ordinary human behavior.

David

about 2 years ago

^apparently not!

over 2 years ago

Trends using the noaa temperature data link here should make sure they are pulling data at about the same time if they are going to compare. Though, its still possible to grab data from the same source with enough of a time gap between each data grab that the information pulled is incorrect. Would be handy to be able to update multiple trends from one page grab.

over 2 years ago

Oh, and all the old data was deleted so we can have a fresh start. :-)

over 2 years ago

Updated the trends to collect data at the same time every day, at either 5 or 6am EST depending on wether DST is active... no way to indicate time of collection other than in UTC... Either trendy needs to be fixed for a more consistent time capability, or all the worlds governments need to hurry up and come to their senses so they can end daylight savings time practices.

over 2 years ago