GRAPHICS


Stata 18 introduced an all-new graph style with a new color palette, horizontal y-axis labels, legend on the right side of the graph, and more. These new features are available in the st family of schemes.

 

For those who prefer a monochrome graph, Stata now offer two additional schemes: stmono1 and stmono2. These schemes follow the look of the labels, legends, and other features of the st schemes but with monochromatic markers and fill colors.

 

For those publishing articles in the Stata Journal, the new stsj scheme reflects the style of the st family with horizontal y-axis labels and a white background. This is now the official scheme for the Stata Journal.

 

© Copyright 1996–2024 StataCorp LLC. All rights reserved.

graph twoway now allows you to specify aspect ratios based on common units in the x and y dimensions. Adding the aspectratio(1, units) option creates a graph where one unit in the x dimension and one unit in the y dimension each takes up the same distance on the plot. This is useful for plotting things such as latitude against longitude, which have common scaling of their units.

 

You can also specify arbitrary relative scales—typing aspectratio(100, units) specifies that each unit in the y dimension is 100 times the length of a unit in the x dimension.

 

You can now use OpenType fonts (.otf) in graphs when you use graph export to export your graph to SVG, PDF, PNG, JPEG, EMF, TIF, or GIF.