Different scaling of two y-axes

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

reep
Posts: 14
Joined: Fri Jan 27, 2012 2:24 am

Different scaling of two y-axes

Postby reep » Fri Jan 27, 2012 5:48 am

I have a group of two series. One series refers to an equity index and the other to yields. I want to plot both in one graph, but the scale for the equity index should be on the right side and for the yields on the left side. Is there a possibility to accomplish this?
Thanks for the help.

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

Re: Different scaling of two y-axes

Postby EViews Gareth » Fri Jan 27, 2012 8:43 am

Yes, in the Graph Options dialog, under Axes and Scaling, you can assign each series to a different axes.

reep
Posts: 14
Joined: Fri Jan 27, 2012 2:24 am

Re: Different scaling of two y-axes

Postby reep » Mon Jan 30, 2012 2:19 am

How can I assign two axis via code. Do you have a short code example?
Thanks a lot.
All best,
reep

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

Re: Different scaling of two y-axes

Postby EViews Gareth » Mon Jan 30, 2012 8:41 am

Code: Select all

graph.setelem(2) axis(r)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests