Amusing Program of the Day

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Amusing Program of the Day

Postby EViews Gareth » Thu Mar 03, 2011 10:51 am

Inspiration hit me this morning (Select all, copy, then paste into a new EViews program (File->New->Program), and then hit Run):

Code: Select all

create u 15 series black black.fill na, na, 7, 9, 11, 39, 6, 12, 6, 39, 11, 9, 7, na, na series white white.fill na, na, na, na, na, na, 2, na, 2, na, na, na, na, na, na series black2 black2.fill na, na, na, na, na, na, 3, na,3, na, na, na, na, na, na series skin skin.fill na, na, na, na, na, na, 11, 4, 11, na, na, na, na, na, na series black3 black3.fill na, na, na, na, na, na, na, 2, na, na, na, na, na, na, na series skin2 skin2.fill na, na, na, na, na, na, na, 4, na, na, na, na, na, na, na series black4 black4.fill na, na, na, na, na, na, 9, 9, 9, na, na, na, na, na, na group g black4 skin2 black3 skin black2 white black freeze(bat) g.bar(s) bat.options -barspace -outlinebars fillcolor(0,0,220) fillfade(ltop) bat.setelem(1) fillcolor(black) bat.setelem(2) fillcolor(@rgb(250, 214, 165)) bat.setelem(3) fillcolor(black) bat.setelem(4) fillcolor(@rgb(250, 214, 165)) bat.setelem(5) fillcolor(black) bat.setelem(6) fillcolor(white) bat.setelem(7) fillcolor(black) bat.legend -display bat.addtext(0.2, 0.18, textcolor(yellow), font(16)) "Na na na na \nna na na na" bat.addtext(3.57, 1.48, textcolor(yellow), font(24)) "Batman!" show bat

tchaithonov
Posts: 168
Joined: Mon Apr 13, 2009 7:39 am
Location: New York City

Re: Amusing Program of the Day

Postby tchaithonov » Thu Mar 03, 2011 11:17 am

Looks like someone has way too much time! ;) Nice work tho.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Amusing Program of the Day

Postby startz » Thu Mar 03, 2011 11:38 am

Very cute!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Amusing Program of the Day

Postby EViews Gareth » Thu Mar 03, 2011 12:15 pm

Looks like someone has way too much time! ;) Nice work tho.
Funny, that's exactly what my boss said.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests