How to Color the Area Between Two Curves Conditionally in EViews?

For questions regarding programming in the EViews programming language.

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

Bob
Posts: 37
Joined: Mon Jan 17, 2022 6:10 am

How to Color the Area Between Two Curves Conditionally in EViews?

Postby Bob » Fri Jul 19, 2024 5:02 am

Hello everyone,

I am currently working on a graph in EViews where I am plotting two series: x1 and x2. I want to color the area between these two curves conditionally:
In red when x1 is above x2.
In green when x1 is below x2.
I have tried creating two complementary series for the positive and negative differences, but I have not been successful with the formatting!
In short, I have not found a clear method to do this using the standard graph options in EViews. Could someone please guide me on the best approach to achieve this?

Thank you very much for your help!

Return to “Programming”

Who is online

Users browsing this forum: Amazon [Bot] and 2 guests