Announcement

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

  • Saving to TIF files

    Hello,

    I am trying to save my Stata graphics to a grey scale 300 dpi .tif file.

    I presume the way to do grey scale is to set the scheme to s2mono? Is this correct?

    Also, when I save to the .tif file the resolution appears to be 96 dpi horizontal and vertical. Can anyone tell me if it's possible to configure Stata to increase the resolution when saving the file?

    Otherwise, my backup option is to use MS Visio to create the .tif file. In that case, can anyone advise on the format to save from Stata as input to MS Visio if 300 dpi .tif is the ultimate goal?

    Thanks in advance,
    John L.

  • #2
    Hello John,

    I haven't tried myself, but I wonder if these suggestions wouldn't fulfil your needs: http://thepoliticalmethodologist.com...ic-publishing/

    It's sort of "bypassing", but it seems to work.

    Hopefully that helps,

    Best,

    Marcos
    Last edited by Marcos Almeida; 04 Jan 2016, 13:54.
    Best regards,

    Marcos

    Comment


    • #3
      What code are you using to create the graph and perform the graph export?

      I'm not an expert on the subject, but one possible method of getting what you want is to first create a 300dpi .png of the chart (using Stata and Ghostscript as discussed in Marcos' link) then convert the .png to a .tiff. You will use Ghostscript to convert the .png to a .tiff.

      See Eric Melse's post here for one of the best explanations I have found on how to create high quality .png's using Stata and Ghostscript. Numerous results on how to convert a .png to a .tiff using Ghostscript can be found with a google search.

      Comment


      • #4
        John Larsson you can also create a customized scheme that might be scaled a bit more effectively for your purposes using brewscheme. Unless it is an absolute requirement to generate the output as a TIFF, I'd recommend using vector graphic files since they'll tend to be smaller and can be scaled to different sizes without loss of resolution. If you're working with an MS workflow, you could likely export as a Windoze Meta File (wmf) or Enhanced Meta File (emf) to generate the an MS friendly vector graphics file.

        Comment

        Working...
        X