Page 1 of 2

RecShade (add US recession shading)

Posted: Mon Apr 05, 2010 1:40 pm
by EViews Gareth
This thread is about the RecShade Add-in that applies US recession shading to graph objects.

Change Log
  • 2010/11/11 - Added Japanese recession data
  • 2011/01/10 - Edited Japanese dates

Re: RecShade (add US recession shading)

Posted: Fri Apr 16, 2010 11:22 am
by EViews Gareth
Please note that, currently at least, this add-in only works on graph objects. If you are looking at a graph view of a series or a group, the add-in will not appear/work. However if you hit the freeze button from that view, to create a graph object, you can then use the add-in.

Re: RecShade (add US recession shading)

Posted: Thu May 27, 2010 7:34 am
by TimGrun
Hi Gareth. We have had some stability issues with EViews that will cause the EViews window to disappear.
I was unable to send an example because of secure data. When I tried to change the data EViews didn't blow up.
The program I ran used a lot of string and svector objects, with a lot of parsing using @wsplit, @replace, .... All this to build up tables.

So, when trying to run the RecShade add-in EViews disappeared.

Here's all I did:
Open a new EViews window.
Open the workfile macromod.
Open the GT graph object.
Click on Proc.
BOOM, EViews disappears.

EViews Version 7.1
Enterprise Edition - Apr 20 2010 build

Re: RecShade (add US recession shading)

Posted: Thu May 27, 2010 8:05 am
by EViews Gareth
Just so I'm clear - you were running a program you had written yourself, then you ran the add-in on a workfile, and EViews crashed?

Had you run your program a few times where it had stopped because of an error?

Re: RecShade (add US recession shading)

Posted: Thu May 27, 2010 10:31 am
by TimGrun
Sorry Gareth, I was very unclear in my post.
There are two separate issues. The first was with an example that I was unable to send to you.

But then, a completely separate issue, was the bombout when trying your RecShade addin.
I had run your RecShade addin example with a brand new EViews session. I was following the example in the EViews 7.1 Supplement help document when my EViews session disappeared. I retried it several times showing other people (to prove I wasn't crazy :D ). Later, I reinstalled the add-in and now the RecShade add-in works. :oops:
Even if I am making some mistake, the EViews session shouldn't just disappear. Unfortunately, I have been unable to find an easily replicable situation that causes EViews to bomb out(disappear).
The next time EViews disappears I will try and send you something that will demonstrate the problem.
Has anyone else reported problems with an EViews session disappearing?

Thanks,
Tim

Re: RecShade (add US recession shading)

Posted: Thu May 27, 2010 10:46 am
by EViews Gareth
No, you are absolutely correct, EViews should never crash like that, even if the user has made a mistake. Unfortunately it can be hard for us to fix those crashes without replicatability.

Obviously one thing I can suggest is that you keep your copy of EViews 7 as up to date as possible, we fix bugs as soon as we find them and usually release a patch fairly soon afterwards.

Re: RecShade (add US recession shading)

Posted: Thu May 27, 2010 10:53 am
by EViews Gareth
Out of interest, when EViews disappeared, did any error message pop up, or was it just a complete vanishing?

Re: RecShade (add US recession shading)

Posted: Thu May 27, 2010 11:09 am
by TimGrun
It was a complete vanishing or I would've sent you the error message.

Re: RecShade (add US recession shading)

Posted: Wed Sep 22, 2010 1:14 pm
by startz
Note that Bob Hall has screwed up RecShade.

Re: RecShade (add US recession shading)

Posted: Wed Sep 22, 2010 1:22 pm
by EViews Gareth
I updated the programs on Monday to reflect the latest info (just didn't post here to tell you).

Re: RecShade (add US recession shading)

Posted: Wed Sep 22, 2010 1:54 pm
by startz
Shoulda known...

Re: RecShade (add US recession shading)

Posted: Tue Nov 02, 2010 12:50 pm
by w_nawfal
Hi All

I use this add in often & it's great

however, how can i change the shading color? (alternatively - is there a default shade option i can manipulate - so that my chosen shade is the default shade?)

thanks much

Wes

Re: RecShade (add US recession shading)

Posted: Tue Nov 02, 2010 8:45 pm
by EViews Gareth
If you open the Add-in program, you'll notice there's a ton of lines that say

Code: Select all

g1.draw(shade, bottom)


Change those all to be

Code: Select all

g1.draw(shade, bottom, color(green))

to change the colour to green, etc...

Re: RecShade (add US recession shading)

Posted: Thu Nov 11, 2010 10:18 am
by EViews Gareth
Javier Sanchez Barrueco has updated this add-in so that it now supports Japanese recession dates. If you download the add-in it will now ask you which countries you would like to install.

If anyone else would like to contribute other country's official recession data, feel free!

Re: RecShade (add US recession shading)

Posted: Wed Nov 17, 2010 6:56 am
by w_nawfal
that's great - thanks to Javier

if i come across official recession data for other countries via my work i'll certainly update this add-in :O)

cheers