I am having trouble difficulty creating a graph using scalar variables stored from stata (found by entering return list, or ereturn list). I know the common commands are to create them as locals or scalars, but I still cannot get my code to run. Any help please? Here in my code, "visit" is my third variable, which is essentially a time component that will run along my x-axis. The two scatter plot scalar variables I am trying to use should be obvious. I've tried many variations of this, creating locals or scalars.

Thank you!

Code:
scalar ci = r(CI)
scalar cise = r(CIse) 
twoway scatter `=scalar(ci)' `=scalar(cise)' visit, sort