Reputation: 63
Is there a way to change Stata graph themes such that the x-axis coincides with the 0 of the y-axis (so there's no grid line for the 0, just a solid x-axis line)? (Moving the y-axis upwards from the graph example picture attached.) Trying to create a scheme but struggling to find an option which would do this.
Upvotes: 0
Views: 450
Reputation: 37208
You can play around with scheme settings, or you can just note that this is tuneable directly with an option. Consider
sysuse auto, clear
scatter trunk weight, plotregion(margin(b=0)) yla(0(5)25)
By the way, it's a matter of taste, but many people, especially in the snarkier tail of economics, sneer at those using the default s2color
scheme, with its tell-tale choice of a blue backdrop. If you like it, well and good, but I'd recommend almost anything else. s1color
is a simple alternative.
Note: schemes not themes. Themes is the same broad idea introduced later in R, if I understand correctly.
Upvotes: 1