Get variable names and values as strings
Posted: Tue Nov 17, 2015 5:57 am
Hey,
I'm doing calculations with different series and different "settings". I'd like to put the information about the series and the settings in the title of the graph. I know how to change the title, but I don't know how to:
1. Get the variable names/values as strings, and
2. concatenate them to a title.
My code looks like the following:
where the title should look like the following:
"Series = loggdp, quarters = 3, threshold = 0.01%"
Thanks in advance!
I'm doing calculations with different series and different "settings". I'd like to put the information about the series and the settings in the title of the graph. I know how to change the title, but I don't know how to:
1. Get the variable names/values as strings, and
2. concatenate them to a title.
My code looks like the following:
Code: Select all
!quarters = 3
!threshold = 0.01
series finseries = loggdp
graph gr1 finseries
gr1.addtext(t) graphtitle
"Series = loggdp, quarters = 3, threshold = 0.01%"
Thanks in advance!