Example: barber

graph export — Export current graph - Stata

Export Export current graphDescriptionQuick startSyntaxOptionsRemarks and examplesReferenceAlso seeDescriptiongraph exportexports to a file the graph displayed in a graph startSave the graph displayed in the graph window Export as abovegraph Export mygraph, as(pdf)Save the graph named MyGraph in memory to disk as anEPSfilegraph Export , name(MyGraph)As above, and it existsgraph Export , name(MyGraph) replaceSave the graph displayed in the graph window the graph width andheight in pixelsgraph Export , width(600) height(450)Save the current graph the top and left margins to half an inchgraph Export , tmargin(.5) lmargin(.5)As above, but suppress the Stata logograph Export , tmargin(.5) lmargin(.5) logo(off)Specify that graph be printed on a page in landscape formatgraph Export , orientation(landscape)Convert the graph saved to disk aPDFgraph use mygraphgraph Export graph Export Export current graphSyntaxgraph [,options]optionsDescriptionname(windown ame)name of graph window to exportas(fileformat)desired format of outputreplacenewfilenamemay already existoverrideoptionsoverride defaults in conversionIfas()is not

[G-3] svg options — Options for exporting to Scalable Vector Graphics [G-3] tif options — Options for exporting to tagged image file format (TIFF) [G-2] graph display — Display graph stored in memory [G-2] graph set — Set graphics options [G-2] graph use — Display graph stored on disk [G-2] graph print — Print a graph

Tags:

  Vector, Graphics, Scalable, Scalable vector graphics

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of graph export — Export current graph - Stata

1 Export Export current graphDescriptionQuick startSyntaxOptionsRemarks and examplesReferenceAlso seeDescriptiongraph exportexports to a file the graph displayed in a graph startSave the graph displayed in the graph window Export as abovegraph Export mygraph, as(pdf)Save the graph named MyGraph in memory to disk as anEPSfilegraph Export , name(MyGraph)As above, and it existsgraph Export , name(MyGraph) replaceSave the graph displayed in the graph window the graph width andheight in pixelsgraph Export , width(600) height(450)Save the current graph the top and left margins to half an inchgraph Export , tmargin(.5) lmargin(.5)As above, but suppress the Stata logograph Export , tmargin(.5) lmargin(.5) logo(off)Specify that graph be printed on a page in landscape formatgraph Export , orientation(landscape)Convert the graph saved to disk aPDFgraph use mygraphgraph Export graph Export Export current graphSyntaxgraph [,options]optionsDescriptionname(windown ame)name of graph window to exportas(fileformat)desired format of outputreplacenewfilenamemay already existoverrideoptionsoverride defaults in conversionIfas()is not specified, the output format is determined by the suffix.

2 ImpliedsuffixoptionOutput formatps as(ps)PS(PostScript)eps as(eps)EPS(Encapsulated PostScript)svg as(svg)SVG( scalable vector graphics )emf as(emf)EMF(Enhanced Metafile)pdf as(pdf)PDF(Portable Document Format)png as(png)PNG(Portable Network graphics )tif as(tif)TIFF(Tagged Image File Format)gif as(gif)GIF( graphics Interchange Format)jpg as(jpg)JPEG(Joint Photographic Experts Group)othermust specifyas()tifis not available for Stata (console);emfis available only for Stata for Windows; andgifis available only for Stata for exporting topsepsoptionswhen exporting toepssvgoptionswhen exporting tosvgpngoptionswhen exporting topngtifoptionswhen exporting totifgifoptionswhen exporting togifjpgoptionswhen exporting tojpgThere are nooverrideoptionsfor (windowname)specifies which window to Export from when exporting a graph .

3 Omitting thename()option exports the topmost graph ( Stata for Unix(GUI) users: seeTechnical note for Statafor Unix(GUI) users). The name for a window is displayed inside parentheses in the window example, if the title for a graph window isGraph (MyGraph), the name for the windowisMyGraph. If a graph is anasisorgraph7graph where there is no name in the window title,specify"" Export Export current graph 3as(fileformat)specifies the file format to which the graph is to be exported. This option is rarelyspecified because, by default, graph exportdetermines the format from the suffix of the filebeing that it is okay to it already how the graph is converted. See [G-3]psoptions, [G-3]epsoptions,[G-3]svgoptions, [G-3]pngoptions, [G-3]tifoptions, [G-3]gifoptions, and [G-3] also [G-2] graph setfor permanently setting default values for and are exported by displaying them on the screen and then typing.

4 graph are presented under the following headings:Exporting the graph displayed in a graph windowExporting a graph stored on diskExporting a graph stored in memoryIf your interest is simply in printing a graph , see [G-2] graph the graph displayed in a graph windowThere are three ways to Export the graph displayed in a graph window:1. Right-click on the graph window, selectSave , and choose the appropriateSave SelectFile > Save , and choose the appropriateSave as Type graph in the Command window. Stata for Unix(GUI) usersshould use thename()option if there is more than one graph displayed to ensure that thecorrect graph is exported (seeTechnical note for Stata for Unix(GUI) users).All three are equivalent. The advantage ofgraph exportis that you can include it in do-files.

5 (draw a graph ). graph (and Export it)By default, graph exportdetermines the output type by thesuffix. If we wanted to create anEncapsulated PostScript file, we might type. graph Export a graph stored on diskTo Export a graph stored on disk, type. graph usegph_filename. graph not specifygraph use snodrawoption; see [G-2] graph graph Export Export current graphStata for Unix(console) users: follow the instructions just given, even though you have no Graphwindow and cannot see what has just been displayed . Use the graph , and then Export a graph stored in memoryTo Export a graph stored in memory but not currently displayed, type. graph displayname. graph not specifygraph display snodrawoption; see [G-2] graph for Unix(console) users: follow the instructions just given, even though you have no Graphwindow and cannot see what has just been displayed.

6 Display the graph , and then Export noteStata for Unix(GUI) users should note that X-Windows does not have a concept of a windowz-order, which prevents Stata from determining which window is the topmost window. Instead, Statadetermines which window is topmost based on which window has the focus. However, some windowmanagers will set the focus to a window without bringing the window to the top. What Stata considersthe topmost window may not appear topmost visually. For this reason, you should always use thename()option to ensure that the correct graph window is , C. 2014. How to create animated graphics using Stata Blog: Not Elsewhere see[G-3]epsoptions Options for exporting to Encapsulated PostScript[G-3]gifoptions Options for exporting to graphics Interchange Format (GIF)[G-3]jpgoptions Options for exporting to Joint Photographic Experts Group (JPEG) format[G-3]pngoptions Options for exporting to portable network graphics (PNG) format[G-3]psoptions Options for exporting or printing to PostScript[G-3]svgoptions Options for exporting to scalable vector graphics [G-3]tifoptions Options for exporting to tagged image file format (TIFF)[G-2] graph display Display graph stored in memory[G-2] graph set Set graphics options[G-2] graph use Display graph stored on disk[G-2] graph print Print a graph


Related search queries