draw a diagonal line on a graph

For questions regarding programming in the EViews programming language.

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

mariposa
Posts: 21
Joined: Tue Dec 02, 2008 7:04 am

draw a diagonal line on a graph

Postby mariposa » Fri Aug 07, 2009 7:14 am

Hi everybody,

I would like to draw some diagonal lines on graphs - does someone know if this is possible? i.e. I have some scatterplots where I want to draw the 45°line and some parallels to this line.

As far as I have figured out the "draw" command only places horizontal or vertical lines. Any suggestions?

Some more informations about my scatterplots: I have for each country a group with the gdp and the export series. Then, I create a "world"-group containing all theses country groups and make a scatterplot of this world-group (one plot for each year). And these graphs should contain, besides all the dots, some diagonal lines.

Thanks and best regards!

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

Re: draw a diagonal line on a graph

Postby EViews Gareth » Fri Aug 07, 2009 8:13 am

Unfortunately this is not possible at the moment :(
Follow us on Twitter @IHSEViews

mariposa
Posts: 21
Joined: Tue Dec 02, 2008 7:04 am

Re: draw a diagonal line on a graph

Postby mariposa » Fri Aug 07, 2009 8:22 am

I was afraid of this... :( (perhaps you could implement it for the next version...?)

However, many thanks for the prompt reply! Best, mariposa

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

Re: draw a diagonal line on a graph

Postby startz » Fri Aug 07, 2009 1:35 pm

If you are desperate, create a fake series with all the points along a 45 degree line and include that in your plot.

mariposa
Posts: 21
Joined: Tue Dec 02, 2008 7:04 am

Re: draw a diagonal line on a graph

Postby mariposa » Thu Aug 13, 2009 6:15 am

Thanks - I'll try this... :)

maren
Posts: 11
Joined: Tue Sep 29, 2009 5:46 am

Re: draw a diagonal line on a graph

Postby maren » Tue Jan 11, 2011 2:00 am

I too would like the option to draw diagonal lines. Any progress on this?

EViews Pamela
EViews Developer
Posts: 54
Joined: Wed Sep 17, 2008 2:52 pm

Re: draw a diagonal line on a graph

Postby EViews Pamela » Tue Jan 11, 2011 3:50 pm

Yes. You will be able to draw straight lines and arrows in EViews 8. :)

michi
Posts: 11
Joined: Thu Apr 18, 2013 7:48 am

Re: draw a diagonal line on a graph

Postby michi » Fri Jul 25, 2014 8:21 am

I'm also trying to draw a diagonal line in a scatter plot (actual vs. fitted values). I have Eviews 8, but I can't figure out the programming command... Can you please help me?

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

Re: draw a diagonal line on a graph

Postby EViews Gareth » Fri Jul 25, 2014 8:33 am

Look up graph.addarrow in the object reference.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 6 guests