# Help with graph label

Good day!
I am trying to label a graph but some reason this not picked up. The graph is plotted at this portion of the code:

Then this is followed by the command below. I have moved this up but can get it to plot the graphs.
Ozey

0

Hello Ozey! I'm happy to help, but for some reason the code seems to be missing from your question. If you can repost, I'll be happy to help.

0

Thanks
Ozey

``` /* Adding impulse responses and 90% confidence bands */```

``` ```

```res=band1|bet|band2; res=res'; tef=cols(bet); xy(seqa(1,1,tef),res~zeros(tef,1));```

```/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++ GRAHPS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/```

``` if graphs ne 1; title("Impulse reaction function for s periods ahead"); plot xy(seqa(1,1,s),band1'~bet'~zeros(s,1)~band2'); endif; ```

`end;`

0

Your code is using a mix of the old PQG graphics and the standard GAUSS graphics.

You have to choose one method. For the final graph, I would recommend that you do this:

``````struct plotControl myPlot;
myPlot = plotGetDefaults("xy");

plotSetTitle(&myPlot, "Impulse reaction function for s periods ahead");

plotXY(myPlot, seqa(1,1,s),band1'~bet'~zeros(s,1)~band2');``````

The tutorial Basic Graph with Programmatic Customization explains this in more detail.

0

Thanks. I am using Gauss 13 and it does not seem to work.
I understand the portion of the code you posted and the tutorial require a minimum Gauss 14?
Ozey

0

Have now managed to fixed the problem.
Running code portion by portion has solved it.
Cheers,
Ozey

0

You should not have to run it a section at a time. What was the error you were getting?

0

The code run smoothly now.
I have commented out the second part of the code and let the first part plot the graph (with some modifications).
All good now.
Thanks,
Ozey

### Have a Specific Question?

Get a real answer from a real person

### Need Support?

Get help from our friendly experts.