Stata 15 help for graph_set

[G-2] graph set -- Set graphics options

Syntax

Manage graph print settings

graph set print [setopt setval]

Manage graph export settings

graph set [exporttype] [setopt setval]

where exporttype is the export file type and may be one of

ps | eps | svg

and setopt is the option to set with the setting setval.

Manage Graph window font settings

graph set window fontface { fontname | default } graph set window fontfacemono { fontname | default } graph set window fontfacesans { fontname | default } graph set window fontfaceserif { fontname | default } graph set window fontfacesymbol { fontname | default }

Description

graph set without options lists the current graphics font, print, and export settings for all exporttypes. graph set with window, print, or exporttype lists the current settings for the Graph window, for printing, or for the specified exporttype, respectively.

graph set print allows you to change the print settings for graphics.

graph set exporttype allows you to change the graphics export settings for export file type exporttype.

graph set window fontface* allows you to change the Graph window font settings. (To change font settings for graphs exported to PostScript, Encapsulated PostScript, or Scalable Vector Graphic files, use graph set {ps|eps|svg} fontface*; see [G-3] ps_options, [G-3] eps_options, or [G-3] svg_options.) If fontname contains spaces, enclose it in double quotes. If you specify default for any of the fontface* settings, the default setting will be restored.

Remarks

Remarks are presented under the following headings:

Overview Setting defaults

Overview

graph set allows you to permanently set the primary font face used in the Graph window as well as the font faces to be used for the four Stata "font faces" supported by the graph SMCL tags {stMono}, {stSans}, {stSerif}, and {stSymbol}. See [G-4] text for more details on these SMCL tags.

graph set also allows you to permanently set any of the options supported by graph print (see [G-2] graph print) or by the specific export file types provided by graph export (see [G-2] graph export).

To find out more about the graph set print setopt options and their associated values (setval), see [G-3] pr_options.

Some graphics file types supported by graph export have options that can be set. The file types that allow option settings and their associated exporttypes are

exporttype Description Available settings ------------------------------------------------------------ ps PostScript [G-3] ps_options eps Encapsulated PostScript [G-3] eps_options svg Scalable Vector Graphics [G-3] svg_options ------------------------------------------------------------

Setting defaults

If you always want the Graph window to use Times New Roman as its default font, you could type

. graph set window fontface "Times New Roman"

Later, you could type

. graph set window fontface default

to restore the factory setting.

To change the font used by {stMono} in the Graph window, you could type

. graph set window fontfacemono "Lucida Console"

and to reset it, you could type

. graph set window fontfacemono default

You can list the current graph settings by typing

. graph set


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index