Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Donald Likosky
    started a topic Exporting of Stata Graphs as .png

    Exporting of Stata Graphs as .png

    I am using Stata/IC 14.2 for Windows (64-bit). I am also using Windows 10
    I have a long .do file where I export hundreds of graphs currently as *.png. The graphs are both box plots and bar charts, with footnotes, legends, etc. I then use Visual Basic code to automate bringing them into PowerPoint 2016 for distribution and viewing. The PowerPoint uses a height of 6.28" / width of 8.63".
    Currently the graphs look quite fuzzy when imported. I also tried using .EPS and they didn't look that clear.

    Does Stata have an option to export the graphs to be the same size as what PowerPoint is looking for?

    Thank you.
    Donny

  • Donald Likosky
    replied
    Thank you Eric

    Leave a comment:


  • ericmelse
    replied
    Dear Donald,

    I am not certain what you expect what "the same size as what PowerPoint is looking for" is, but you can control the export size rather easy:
    Code:
    sysuse auto , clear
    twoway scatter price mpg [aweight=displacement], msymbol(o) mfcolor(cyan%20)
    graph export testExport.png
    graph export testExportPPTsize.png , width(1500) height(1100)
    for more on this, consult the help file:
    Code:
    h png_options
    Happy graphing!
    Eric

    Leave a comment:

Working...
X