### Scatter plot two vectors

Posted:

**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?**

Page **1** of **1**

Posted: **Mon Jun 03, 2019 9:29 am**

Posted: **Mon Jun 03, 2019 9:33 am**

Put them into a matrix.

Posted: **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?

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?

Posted: **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?**

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.

Posted: **Tue Jun 04, 2019 10:09 am**

use {X}

Posted: **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?**

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.

Posted: **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.