Dear Statalisters,
Why doesn't r(gbox) after -graph, bbox()- return the values of bbox?
Example (default input based on Graphics manual for v.7 p. 62):
program define graphbox
syntax [ varlist(default=none) ] [ , bbox(string) * ]
if "`bbox'"=="" {
local bbox = "1000,0,13500,15000,850,390,0"
}
if "`varlist'"=="" {
local varlist mpg weight
}
di "`varlist'"
gph open
graph `varlist' , bbox(`bbox') `options'
gph close
local gbox = r(gbox)
di "input bbox: `bbox'"
di "output gbox: `gbox'"
end
Now, with the auto dataset loaded:
. graphbox
input bbox: 1000,0,13500,15000,850,390,0
output gbox: 1000,0,13127,15000,850,390,0
Has Stata allocated 373 "rows" less to the graph than requested, or are bbox
and gbox two different concepts?
-- H�kon
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/