## 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: 85
Joined: Thu Feb 17, 2011 9:50 am

### Scatter plot two vectors

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: 12371
Joined: Tue Sep 16, 2008 5:38 pm

### Re: Scatter plot two vectors

Put them into a matrix.

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

### Re: Scatter plot two vectors

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: 12371
Joined: Tue Sep 16, 2008 5:38 pm

### Re: Scatter plot two vectors

Code: Select all

`show z.scat`

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

### Re: Scatter plot two vectors

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

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: 12371
Joined: Tue Sep 16, 2008 5:38 pm

### Re: Scatter plot two vectors

use {X}

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

### Re: Scatter plot two vectors

I have added two texts in my scatter plot

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: 12371
Joined: Tue Sep 16, 2008 5:38 pm

### Re: Scatter plot two vectors

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.

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

### Re: Scatter plot two vectors

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.