Scatter plot two vectors

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

RDS
Posts: 86
Joined: Thu Feb 17, 2011 9:50 am

Scatter plot two vectors

Postby RDS » Mon Jun 03, 2019 9:29 am

is it possible to scatter plot two vectors of equal size one on the Y-axis and the other on the X-axis?

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

Re: Scatter plot two vectors

Postby EViews Gareth » Mon Jun 03, 2019 9:33 am

Put them into a matrix.
Follow us on Twitter @IHSEViews

RDS
Posts: 86
Joined: Thu Feb 17, 2011 9:50 am

Re: Scatter plot two vectors

Postby RDS » Mon Jun 03, 2019 10:05 am

I have now a matrix Z with two vectors.

Is there a piece of program I can use such as
scat Z(1) Z(2)
where the first vector is plotted on the Y-axis and the second vector is plotted on the X-axis?

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

Re: Scatter plot two vectors

Postby EViews Gareth » Mon Jun 03, 2019 10:06 am

Code: Select all

show z.scat
Follow us on Twitter @IHSEViews

RDS
Posts: 86
Joined: Thu Feb 17, 2011 9:50 am

Re: Scatter plot two vectors

Postby RDS » Tue Jun 04, 2019 10:01 am

I would like to add a result in a chart, but I cannot manage.

for example:
scalar scalar_x = 2.55555555555555

I first create a string:
string X = @str(scalar_X, "f7..3")

then I add it to the chart such as

graph.addtext(.1,2.75 .1) X

However, what I get is X and not 2.555.

How can I get 2.555 in a scatter plot?

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

Re: Scatter plot two vectors

Postby EViews Gareth » Tue Jun 04, 2019 10:09 am

use {X}
Follow us on Twitter @IHSEViews

RDS
Posts: 86
Joined: Thu Feb 17, 2011 9:50 am

Re: Scatter plot two vectors

Postby RDS » Fri Jun 07, 2019 2:43 am

I have added two texts in my scatter plot

mygraph.addtext(0.1,0.1, x) TEXT1
mygraph.addtext(0.1,0.5, x) TEXT2

But I would like to remove the frame around them.
I tried various alternative unsuccessfully.

What should I do?

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

Re: Scatter plot two vectors

Postby EViews Gareth » Fri Jun 07, 2019 9:44 am

The x option instructs EViews to put a box around the text. If you don't want a box around the text, don't use the x option.
Follow us on Twitter @IHSEViews

Thomasd52
Posts: 1
Joined: Mon Dec 16, 2019 4:36 am

Re: Scatter plot two vectors

Postby Thomasd52 » Wed Dec 25, 2019 10:44 pm

RDS wrote:I have now a matrix Z with two vectors.

Is there a piece of program I can use such as
scat Z(1) Z(2)
where the first vector is plotted on the Y-axis and the second vector is plotted on the X-axis rachat de credit info ?

I too am looking for a program that can help me if someone has one.


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 13 guests