Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Kieran McCaul" <Kieran.McCaul@uwa.edu.au> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: Graph png format - differences in scaling between vers. 10 and 11 |

Date |
Wed, 17 Mar 2010 05:22:25 +0800 |

... have you tried using the -xsize()- and -ysize()- options to set the size of the graph before you export it? -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Johannes Geyer Sent: Tuesday, 16 March 2010 7:49 PM To: statalist@hsphsun2.harvard.edu Subject: st: Graph png format - differences in scaling between vers. 10 and 11 Dear Listers, I just stumbled across an unexpected behaviour. I updated some graphs for a Beamer-Latex presentation. I used the "png" format. But I used Stata 11 instead of Stata 10. The result was a file smaller than the previous version (by a factor of four) with a smaller resolution. I guess, png is not a vector format and not indifferent to scaling. So, there is a smaller picture with less pixels which looks less nice when its size is increased. Even if I use Stata version-control, there is no difference. These new graphs look bad in the presentation, so I recreated them using Stata 10. There are many workarounds and this is not a big problem - but is this wanted, that the output changes even when I use version control? And the previous default looked better to me. Or did I overlook something? The code I used was the following: ************************ twoway (scatte v1 v2 t, connect(l l) mlabel(v1 v2) mlabp(12 12) msymbol(D O)) (scatte v5 v6 t, /// mlabel(v5 v6) mlabp(6 3) msymbol(S T) yaxis(2)), legend(size(small) label(1 "S1") label(2 "S2") label(3 "S3") label(4 "S4")) /// xlabel(1 "1937-1941" 2 "1942-1946" 3 "1947-1951" 4 "1952-1956" 5 "1957-1961" 6 "1962-1966" 7 "1967-1971", labsize(small)) /// ylabel(, labsize(small) axis(1 2)) scheme(sj) /// xtitle(Kohorten, size(small) margin(medium)) plotregion(margin(large)) /// ytitle("XX", size(small) margin(small) axis(1)) /// ytitle("YY", size(small) margin(small) axis(2)) graph export "test.png", replace ************************ Thanks, Johannes * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Graph png format - differences in scaling between vers. 10 and 11***From:*Johannes Geyer <JGeyer@diw.de>

- Prev by Date:
**RE: st: multiple lines on one graph using foreach** - Next by Date:
**RE: st: CIs around Qreg trend line** - Previous by thread:
**st: Graph png format - differences in scaling between vers. 10 and 11** - Next by thread:
**re: st: Graph png format - differences in scaling between vers. 10 and 11** - Index(es):